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