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