Compare commits
No commits in common. "4ab3848c830a2a1254e78189909cd316011f5817" and "12015f8589f83882fca484c70814925c02f888b3" have entirely different histories.
4ab3848c83
...
12015f8589
2 changed files with 10 additions and 5 deletions
|
|
@ -1,10 +1,8 @@
|
||||||
keys:
|
keys:
|
||||||
- &tdpeuter_Tibo-NixFatDesk age1fva6s64s884z0q2w7de024sp69ucvqu0pg9shrhhqsn3ewlpjfpsh6md7y
|
|
||||||
- &tdpeuter_Tibo-NixTop age1qzutny0mqpcccqw6myyfntu6wcskruu9ghzvt6r4te7afkqwnguq05ex37
|
- &tdpeuter_Tibo-NixTop age1qzutny0mqpcccqw6myyfntu6wcskruu9ghzvt6r4te7afkqwnguq05ex37
|
||||||
|
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: secrets/[^/]+\.(yaml|json|env|ini)$
|
- path_regex: secrets/[^/]+\.(yaml|json|env|ini)$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *tdpeuter_Tibo-NixFatDesk
|
|
||||||
- *tdpeuter_Tibo-NixTop
|
- *tdpeuter_Tibo-NixTop
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homelab.users.admin;
|
cfg = config.homelab.users.admin;
|
||||||
|
|
||||||
|
owner = config.users.users.admin.name;
|
||||||
in {
|
in {
|
||||||
options.homelab.users.admin.enable = lib.mkEnableOption "user System Administrator";
|
options.homelab.users.admin.enable = lib.mkEnableOption "user System Administrator";
|
||||||
|
|
||||||
|
|
@ -10,6 +12,12 @@ in {
|
||||||
config.users.users.admin.name
|
config.users.users.admin.name
|
||||||
];
|
];
|
||||||
|
|
||||||
|
sops.secrets."users/admin/authorized_keys" = {
|
||||||
|
format = "yaml";
|
||||||
|
sopsFile = ../../secrets/secrets.yaml;
|
||||||
|
inherit owner;
|
||||||
|
};
|
||||||
|
|
||||||
users.users.admin = {
|
users.users.admin = {
|
||||||
description = "System Administrator";
|
description = "System Administrator";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
@ -17,9 +25,8 @@ in {
|
||||||
config.users.groups.wheel.name # Enable 'sudo' for the user.
|
config.users.groups.wheel.name # Enable 'sudo' for the user.
|
||||||
];
|
];
|
||||||
initialPassword = "ChangeMe";
|
initialPassword = "ChangeMe";
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keyFiles = [
|
||||||
# HomeLab > NixOS > admin > ssh
|
/run/secrets/users/admin/authorized_keys
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGWIOOEqTy8cWKpENVbzD4p7bsQgQb/Dgpzk8i0dZ00T"
|
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
curl
|
curl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue