permissions
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
system.stateVersion = "${stateVersion}";
|
system.stateVersion = "${stateVersion}";
|
||||||
time.timeZone = "${timeZone}";
|
time.timeZone = "${timeZone}";
|
||||||
users.users.${user} = {
|
users.users.${user} = {
|
||||||
|
extraGroups = [ "wheel" ];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
openssh.authorizedKeys.keyFiles = [ /root/.ssh/authorized_keys ];
|
openssh.authorizedKeys.keyFiles = [ /root/.ssh/authorized_keys ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ in
|
|||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
username = "${user}";
|
username = "${user}";
|
||||||
homeDirectory = "${homePath}";
|
homeDirectory = "${homePath}";
|
||||||
};
|
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
(pkgs.writeShellScriptBin "nfs" ''
|
(pkgs.writeShellScriptBin "nfs" ''
|
||||||
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
|
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
|
||||||
@@ -29,6 +27,7 @@ in
|
|||||||
'')
|
'')
|
||||||
git
|
git
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user