nixos/modules/system/user.nix

15 lines
364 B
Nix
Raw Permalink Normal View History

2025-12-13 21:41:52 +01:00
{config, ...}: let
inherit (config.fireproof) username;
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
};
};
}