|
@ -1,7 +1,7 @@ |
|
|
{ pkgs, ... }: |
|
|
{ pkgs, ... }: |
|
|
let |
|
|
let |
|
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; |
|
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; |
|
|
prefix = "/server/current"; |
|
|
|
|
|
|
|
|
prefix = "/server/project"; |
|
|
in |
|
|
in |
|
|
{ |
|
|
{ |
|
|
imports = [ |
|
|
imports = [ |
|
@ -10,6 +10,7 @@ in |
|
|
|
|
|
|
|
|
systemd.tmpfiles.rules = [ |
|
|
systemd.tmpfiles.rules = [ |
|
|
"d /server 0777 root root" |
|
|
"d /server 0777 root root" |
|
|
|
|
|
"d /server/project 0770 root project" |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
users.users = |
|
|
users.users = |
|
@ -19,7 +20,7 @@ in |
|
|
isNormalUser = true; |
|
|
isNormalUser = true; |
|
|
home = "${prefix}/${name}"; |
|
|
home = "${prefix}/${name}"; |
|
|
createHome = true; |
|
|
createHome = true; |
|
|
extraGroups = [ "current" ] ++ |
|
|
|
|
|
|
|
|
extraGroups = [ "project" ] ++ |
|
|
(if manager then ["docker" "wheel"] else []); |
|
|
(if manager then ["docker" "wheel"] else []); |
|
|
shell = (if zsh then pkgs.zsh else pkgs.bash); |
|
|
shell = (if zsh then pkgs.zsh else pkgs.bash); |
|
|
password = passwd; |
|
|
password = passwd; |
|
|