feat(servers): set passwords using hashedPasswordFile.
This commit is contained in:
parent
41747d82cc
commit
eb5fffaaa0
10 changed files with 52 additions and 2 deletions
|
@ -6,5 +6,6 @@
|
|||
./secrets.nix
|
||||
./podman.nix
|
||||
./additional-pkgs.nix
|
||||
./root.nix
|
||||
];
|
||||
}
|
||||
|
|
5
modules/servers/general/root.nix
Normal file
5
modules/servers/general/root.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{config, ...}: {
|
||||
users.users.root = {
|
||||
hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue