fix(Development): Replace authorized_keys
This commit is contained in:
parent
a37c5ae83a
commit
4ab3848c83
1 changed files with 3 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue