diff options
Diffstat (limited to 'hosts/atlas/default.nix')
| -rw-r--r-- | hosts/atlas/default.nix | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/hosts/atlas/default.nix b/hosts/atlas/default.nix index ce36fcf..21f06f7 100644 --- a/hosts/atlas/default.nix +++ b/hosts/atlas/default.nix @@ -1,6 +1,5 @@ { config, - lib, pkgs, ... }: { @@ -33,35 +32,21 @@ hostName = "atlas"; }; - nix.settings = { - extra-platforms = lib.mkForce ""; - trusted-users = ["bob"]; - }; - - system.stateVersion = "22.11"; + nix.settings.allowed-users = ["bob"]; - users.users = let - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMPV9wiDwXVyoVh347CAulkdGzG7+1m/rZ1aV5fk3BHM atlas [email protected]" - ]; - in { - root = {inherit openssh;}; + system.stateVersion = "23.05"; + users.users = { atlas = { extraGroups = ["wheel"]; isNormalUser = true; shell = pkgs.bash; passwordFile = config.age.secrets.userPassword.path; - inherit openssh; }; bob = { isNormalUser = true; shell = pkgs.bash; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOtbxHjDADxqsG+AgCoiDq0uCsgcnJCIH+9rB6K5pIi9 p-body@p-body" - "ssh-ed25519 aaaac3nzac1lzdi1nte5aaaaimpv9widwxvyovh347caulkdgzg7+1m/rz1av5fk3bhm atlas [email protected]" - ]; }; }; |
