Add pubkeys for ssh on caperren and cluster admin from caperren account

This commit is contained in:
2025-12-07 16:58:02 -08:00
parent e717edc177
commit 4fe3ce49e6
4 changed files with 13 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
let let
hyprlandConfigPath = ./. + "/dotfiles/hyprland/${config.networking.hostName}"; hyprlandConfigPath = ./. + "/dotfiles/hyprland/${config.networking.hostName}";
kanshiConfigPath = ./. + "/dotfiles/kanshi/${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; spotifyPlayerAppTomlTextTemplate = builtins.readFile ./dotfiles/spotify-player/app.toml;
spotifyPlayerAppTomlText = spotifyPlayerAppTomlText =
builtins.replaceStrings [ "{{hostname}}" ] [ config.networking.hostName ] builtins.replaceStrings [ "{{hostname}}" ] [ config.networking.hostName ]
@@ -22,6 +24,10 @@ in
"podman" "podman"
"wheel" "wheel"
]; ];
openssh.authorizedKeys.keys = [
sshDesktopPubkey
# sshLaptopPubkey
];
}; };
home-manager.users.caperren = { home-manager.users.caperren = {

View File

@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILb5YZG6wCmqoevSHsP9f9eix3iugntBFy9hf/gkGb5v caperren@cap-nr200p

View File

View File

@@ -1,4 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let
sshCaperrenDesktopPubkey = builtins.readFile ../caperren/pubkeys/cap-nr200p.pub;
in
{ {
users.users.cluster-admin = { users.users.cluster-admin = {
initialPassword = "changeme"; initialPassword = "changeme";
@@ -8,6 +11,9 @@
"networkmanager" "networkmanager"
"wheel" "wheel"
]; ];
openssh.authorizedKeys.keys = [
sshCaperrenDesktopPubkey
];
}; };
home-manager.users.cluster-admin = { home-manager.users.cluster-admin = {