ma state.mod: put activation logic into module

This commit is contained in:
makefu 2018-09-24 14:34:50 +02:00
parent 49e0ae20c9
commit 796ad2c5c8
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -6,4 +6,11 @@
description = "state which is currently scattered on the machine"; description = "state which is currently scattered on the machine";
default = []; 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
'';
} }