conditional activation
This commit is contained in:
parent
7e2a3961a8
commit
3cc5617307
2
mod.nix
2
mod.nix
@ -66,7 +66,7 @@ in
|
|||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
users.users = mkIf cfg.enable { ${cfg.user} = { }; };
|
users.users = mkIf cfg.enable { ${cfg.user} = { }; };
|
||||||
system.activationScripts.brownpaper = {
|
system.activationScripts.brownpaper = mkIf cfg.enable {
|
||||||
text = ''
|
text = ''
|
||||||
mkdir -p ${toString cfg.dataDir}
|
mkdir -p ${toString cfg.dataDir}
|
||||||
chown ${toString cfg.user} -R ${toString cfg.dataDir}
|
chown ${toString cfg.user} -R ${toString cfg.dataDir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user