mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 19:14:19 +00:00
Add pubkeys for ssh on caperren and cluster admin from caperren account
This commit is contained in:
@@ -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 = {
|
||||
|
||||
1
users/caperren/pubkeys/cap-nr200p.pub
Normal file
1
users/caperren/pubkeys/cap-nr200p.pub
Normal file
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILb5YZG6wCmqoevSHsP9f9eix3iugntBFy9hf/gkGb5v caperren@cap-nr200p
|
||||
0
users/caperren/pubkeys/cap-slim7.pub
Normal file
0
users/caperren/pubkeys/cap-slim7.pub
Normal 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 = {
|
||||
|
||||
Reference in New Issue
Block a user