mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
18 lines
343 B
Nix
18 lines
343 B
Nix
{
|
|
username,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.age) secrets;
|
|
in {
|
|
config = {
|
|
age.secrets.hashed-user-password.rekeyFile = ../../secrets/hashed-user-password.age;
|
|
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
extraGroups = ["wheel"];
|
|
hashedPasswordFile = secrets.hashed-user-password.path;
|
|
};
|
|
};
|
|
}
|