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