2025-01-31 15:13:22 +01:00
|
|
|
{
|
2025-02-18 20:17:57 +01:00
|
|
|
username,
|
|
|
|
|
config,
|
2025-01-31 15:13:22 +01:00
|
|
|
...
|
2025-08-21 10:31:50 +02:00
|
|
|
}: let
|
2025-02-18 20:17:57 +01:00
|
|
|
inherit (config.age) secrets;
|
2025-01-31 15:13:22 +01:00
|
|
|
in {
|
|
|
|
|
config = {
|
2025-02-20 22:50:06 +01:00
|
|
|
age.secrets.hashed-user-password.rekeyFile = ../../secrets/hashed-user-password.age;
|
2025-02-18 20:17:57 +01:00
|
|
|
|
|
|
|
|
users.users.${username} = {
|
2025-01-31 15:13:22 +01:00
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = ["wheel"];
|
2025-02-19 20:32:36 +00:00
|
|
|
hashedPasswordFile = secrets.hashed-user-password.path;
|
2025-01-31 15:13:22 +01:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|