fix: refactor improper use of mkIf
Apparently you should NOT do this, because not only will it not work, it will also break the entire module!
This commit is contained in:
parent
79c0dfa162
commit
80834ea71c
1 changed files with 11 additions and 8 deletions
|
|
@ -45,13 +45,16 @@ in {
|
||||||
"L+ ${forgejo.stateDir}/custom/public/assets - - - - ${cfg.theme}"
|
"L+ ${forgejo.stateDir}/custom/public/assets - - - - ${cfg.theme}"
|
||||||
++ lib.optional (!(builtins.isNull cfg.templates))
|
++ lib.optional (!(builtins.isNull cfg.templates))
|
||||||
"L+ ${forgejo.stateDir}/custom/templates - - - - ${cfg.templates}";
|
"L+ ${forgejo.stateDir}/custom/templates - - - - ${cfg.templates}";
|
||||||
}
|
|
||||||
// lib.mkIf cfg.createUser {
|
users.users = lib.mkIf cfg.createUser {
|
||||||
users.users.${forgejo.user} = {
|
${forgejo.user} = {
|
||||||
home = forgejo.stateDir;
|
home = forgejo.stateDir;
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
group = forgejo.group;
|
group = forgejo.group;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users.groups = lib.mkIf cfg.createUser {
|
||||||
|
${forgejo.group} = {};
|
||||||
};
|
};
|
||||||
users.groups.${forgejo.group} = {};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue