refactor(openssh): move authorizedKeys to sshd module
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-01-16 22:33:02 -05:00
parent ff785d44c7
commit 8a8ea40101
5 changed files with 11 additions and 18 deletions

View file

@ -36,11 +36,6 @@ in {
"video" "video"
"libvirtd" "libvirtd"
]; ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
];
}; };
home-manager.users.${mainUser} = { home-manager.users.${mainUser} = {
imports = [ imports = [

View file

@ -26,12 +26,6 @@ in {
"wheel" "wheel"
"adm" "adm"
]; ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
];
}; };
home-manager.users.${mainUser} = { home-manager.users.${mainUser} = {
imports = []; imports = [];

View file

@ -26,12 +26,6 @@ in {
"wheel" "wheel"
"adm" "adm"
]; ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
];
}; };
# https://nixos.wiki/wiki/Distributed_build # https://nixos.wiki/wiki/Distributed_build

BIN
flake.nix

Binary file not shown.

View file

@ -1,4 +1,6 @@
{...}: { {config, ...}: let
inherit (config.vars) mainUser;
in {
services = { services = {
openssh = { openssh = {
enable = true; enable = true;
@ -8,4 +10,12 @@
}; };
}; };
}; };
users.users.${mainUser} = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
];
};
} }