summaryrefslogtreecommitdiff
path: root/hosts/atlas/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-07-15 03:00:28 -0400
committerseth <[email protected]>2023-07-15 04:15:21 -0400
commitf0ed286c00c8369a9c99986c7574b60954120d94 (patch)
tree76f843ca66811d1c6771ebbd0f17022fbfd803cd /hosts/atlas/default.nix
parentf7ff62b10c67c7ee381e3a64fa9e1b383010c084 (diff)
host/atlas+p-body: stop using openssh
Diffstat (limited to 'hosts/atlas/default.nix')
-rw-r--r--hosts/atlas/default.nix21
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]"
- ];
};
};