diff --git a/users/caperren/caperren.nix b/users/caperren/caperren.nix index 190e7c3..1575113 100644 --- a/users/caperren/caperren.nix +++ b/users/caperren/caperren.nix @@ -2,6 +2,8 @@ let hyprlandConfigPath = ./. + "/dotfiles/hyprland/${config.networking.hostName}"; kanshiConfigPath = ./. + "/dotfiles/kanshi/${config.networking.hostName}"; + sshDesktopPubkey = builtins.readFile ./pubkeys/cap-nr200p.pub; + sshLaptopPubkey = builtins.readFile ./pubkeys/cap-slim7.pub; spotifyPlayerAppTomlTextTemplate = builtins.readFile ./dotfiles/spotify-player/app.toml; spotifyPlayerAppTomlText = builtins.replaceStrings [ "{{hostname}}" ] [ config.networking.hostName ] @@ -22,6 +24,10 @@ in "podman" "wheel" ]; + openssh.authorizedKeys.keys = [ + sshDesktopPubkey +# sshLaptopPubkey + ]; }; home-manager.users.caperren = { diff --git a/users/caperren/pubkeys/cap-nr200p.pub b/users/caperren/pubkeys/cap-nr200p.pub new file mode 100644 index 0000000..6b7f9a2 --- /dev/null +++ b/users/caperren/pubkeys/cap-nr200p.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILb5YZG6wCmqoevSHsP9f9eix3iugntBFy9hf/gkGb5v caperren@cap-nr200p \ No newline at end of file diff --git a/users/caperren/pubkeys/cap-slim7.pub b/users/caperren/pubkeys/cap-slim7.pub new file mode 100644 index 0000000..e69de29 diff --git a/users/cluster-admin/cluster-admin.nix b/users/cluster-admin/cluster-admin.nix index 16dac1e..6a91906 100644 --- a/users/cluster-admin/cluster-admin.nix +++ b/users/cluster-admin/cluster-admin.nix @@ -1,4 +1,7 @@ { config, pkgs, ... }: +let + sshCaperrenDesktopPubkey = builtins.readFile ../caperren/pubkeys/cap-nr200p.pub; +in { users.users.cluster-admin = { initialPassword = "changeme"; @@ -8,6 +11,9 @@ "networkmanager" "wheel" ]; + openssh.authorizedKeys.keys = [ + sshCaperrenDesktopPubkey + ]; }; home-manager.users.cluster-admin = {