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
# unfortunately timed GC removing it.
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
output="$WORK_DIR/news-info.sh"