From d80bf24dab1c1abb3c36e6e28cd30d27599a9620 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 25 Mar 2023 16:16:34 +0100 Subject: [PATCH] home-manager: error out when showing news in flake --- home-manager/home-manager | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home-manager/home-manager b/home-manager/home-manager index c0d1d0a9d..b6ca244b0 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -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"