ma state.mod: put activation logic into module

This commit is contained in:
makefu 2018-09-24 14:34:50 +02:00
parent 1cdf1b0b64
commit a85433255b

View file

@ -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
'';
}