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
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 = {

View File

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

View File

View File

@@ -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 = {