blob: a87f438fef33b51f91b0885c669f7d2a2f3efb97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{config, lib, pkgs, ... }:
{
options.state = lib.mkOption {
type = lib.types.listOf lib.types.str;
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
'';
}
|