summaryrefslogtreecommitdiffstats
path: root/makefu/3modules/state.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-29 19:06:15 +0200
committerlassulus <lass@blue.r>2018-09-29 19:06:15 +0200
commitd04fa5351158f91f8c38f1b0cc072def3f357e05 (patch)
treefbdb852412c80a17f4d726062c224a55b928b672 /makefu/3modules/state.nix
parentb024b2e1ee80d8104f94d75360882bf340af4468 (diff)
parentd7ecf1abdcc52e82af8ea17e4fc8d4be8fc41822 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/3modules/state.nix')
-rw-r--r--makefu/3modules/state.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/makefu/3modules/state.nix b/makefu/3modules/state.nix
index 461b90152..a87f438fe 100644
--- a/makefu/3modules/state.nix
+++ b/makefu/3modules/state.nix
@@ -6,4 +6,11 @@
description = "state which is currently scattered on the machine";
default = [];
};
+
+ config.system.activationScripts.state = lib.optionalString (config.state != []) ''
+ cat << EOF
+ This machine is burdened with state:
+ ${lib.concatMapStringsSep "\n" (d: "* ${d}") config.state}
+ EOF
+ '';
}