From 7598ffcf97a26295499a4deb1badeae63ff8a26a Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Mon, 15 Dec 2025 19:34:01 +0100 Subject: [PATCH] add authkeys to work --- hosts/work/default.nix | 6 +++++- modules/home/ssh.nix | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hosts/work/default.nix b/hosts/work/default.nix index 01d3eb0..e5acfe9 100644 --- a/hosts/work/default.nix +++ b/hosts/work/default.nix @@ -34,6 +34,10 @@ users.users.${username} = { name = username; home = "/Users/${username}"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaIAP/ZJ7+7jeR44e1yIJjfQAB6MN351LDKJAXVF62P" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k" + ]; }; # System-level programs @@ -65,4 +69,4 @@ # Used for backwards compatibility, read the changelog before changing. # $ darwin-rebuild changelog system.stateVersion = 5; -} \ No newline at end of file +} diff --git a/modules/home/ssh.nix b/modules/home/ssh.nix index 2e9c430..86e2715 100644 --- a/modules/home/ssh.nix +++ b/modules/home/ssh.nix @@ -141,7 +141,7 @@ in { # Private MacBook "macbook.host" = { hostname = "192.168.3.9"; - user = "morten"; + user = "alice"; port = 22; identityFile = cfg.githubPrivateKeyPath; identitiesOnly = true; @@ -150,7 +150,7 @@ in { # ZN MacBook "zn.host" = { hostname = "192.168.3.3"; - user = "morten"; + user = "alice"; port = 22; identityFile = cfg.githubPrivateKeyPath; identitiesOnly = true;