1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-18 07:49:48 +01:00

home-manager: error out when showing news in flake

This commit is contained in:
Robert Helgesson 2023-03-25 16:16:34 +01:00
parent 225d1fb77e
commit d80bf24dab
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -687,6 +687,12 @@ function newsReadIdsFile() {
# put the output in the work directory to avoid the risk of an # put the output in the work directory to avoid the risk of an
# unfortunately timed GC removing it. # unfortunately timed GC removing it.
function buildNews() { function buildNews() {
setFlakeAttribute
if [[ -v FLAKE_CONFIG_URI ]]; then
_iError "Sorry, this command is not yet supported in flake setup" >&2
exit 1
fi
local output local output
output="$WORK_DIR/news-info.sh" output="$WORK_DIR/news-info.sh"