feat(servers): set passwords using hashedPasswordFile.

This commit is contained in:
CronyAkatsuki 2025-05-16 08:18:46 +02:00
parent 41747d82cc
commit eb5fffaaa0
10 changed files with 52 additions and 2 deletions

View file

@ -6,5 +6,6 @@
./secrets.nix
./podman.nix
./additional-pkgs.nix
./root.nix
];
}

View file

@ -0,0 +1,5 @@
{config, ...}: {
users.users.root = {
hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
};
}

View file

@ -5,6 +5,12 @@
file = ../../../secrets/traefik.age;
owner = "traefik";
};
crony-passwd = {
file = ../../../secrets/crony-passwd-servers.age;
};
root-passwd = {
file = ../../../secrets/root-passwd.age;
};
};
};
}

View file

@ -1,6 +1,6 @@
{...}: {
{config, ...}: {
users.users.crony = {
password = "whatever i will change it right away";
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
isNormalUser = true;
description = "crony";
extraGroups = [