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:
parent
225d1fb77e
commit
d80bf24dab
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue