fix(Development): Replace authorized_keys

This commit is contained in:
Tibo De Peuter 2025-10-04 20:25:09 +02:00
parent a37c5ae83a
commit 4ab3848c83
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -2,8 +2,6 @@
let
cfg = config.homelab.users.admin;
owner = config.users.users.admin.name;
in {
options.homelab.users.admin.enable = lib.mkEnableOption "user System Administrator";
@ -12,12 +10,6 @@ in {
config.users.users.admin.name
];
sops.secrets."users/admin/authorized_keys" = {
format = "yaml";
sopsFile = ../../secrets/secrets.yaml;
inherit owner;
};
users.users.admin = {
description = "System Administrator";
isNormalUser = true;
@ -25,8 +17,9 @@ in {
config.users.groups.wheel.name # Enable 'sudo' for the user.
];
initialPassword = "ChangeMe";
openssh.authorizedKeys.keyFiles = [
/run/secrets/users/admin/authorized_keys
openssh.authorizedKeys.keys = [
# HomeLab > NixOS > admin > ssh
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGWIOOEqTy8cWKpENVbzD4p7bsQgQb/Dgpzk8i0dZ00T"
];
packages = with pkgs; [
curl