ma state.mod: put activation logic into module
This commit is contained in:
parent
49e0ae20c9
commit
796ad2c5c8
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user