|
@ -10,26 +10,27 @@ in |
|
|
|
|
|
|
|
|
systemd.tmpfiles.rules = [ |
|
|
systemd.tmpfiles.rules = [ |
|
|
"d /server 0755 root root" |
|
|
"d /server 0755 root root" |
|
|
"d ${prefix} 0755 root root" |
|
|
|
|
|
|
|
|
"d /server/current 0755 root root" |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
users.users = |
|
|
users.users = |
|
|
let |
|
|
let |
|
|
user = |
|
|
user = |
|
|
{ manager ? false, name, passwd }: { |
|
|
|
|
|
|
|
|
{ zsh ? false, manager ? false, name, passwd }: { |
|
|
isNormalUser = true; |
|
|
isNormalUser = true; |
|
|
home = "${prefix}/${name}"; |
|
|
home = "${prefix}/${name}"; |
|
|
createHome = true; |
|
|
createHome = true; |
|
|
extraGroups = [ "current" ] ++ |
|
|
extraGroups = [ "current" ] ++ |
|
|
(if manager then ["docker" "wheel"] else []); |
|
|
(if manager then ["docker" "wheel"] else []); |
|
|
shell = pkgs.bash; |
|
|
|
|
|
|
|
|
shell = (if zsh then pkgs.zsh else pkgs.bash); |
|
|
password = passwd; |
|
|
password = passwd; |
|
|
}; |
|
|
}; |
|
|
in |
|
|
in |
|
|
{ |
|
|
{ |
|
|
junikim = user { name = "junikim"; passwd = "1234"; }; |
|
|
|
|
|
|
|
|
junikim = user { manager = true; name = "junikim"; passwd = "1234"; }; |
|
|
a = user { name = "a"; passwd = "1234"; }; |
|
|
a = user { name = "a"; passwd = "1234"; }; |
|
|
b = user { name = "b"; passwd = "1234"; }; |
|
|
b = user { name = "b"; passwd = "1234"; }; |
|
|
|
|
|
c = user { name = "c"; passwd = "1234"; }; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
home-manager.users = |
|
|
home-manager.users = |
|
|