1
0
Fork 0
puter/common/users.nix

28 lines
576 B
Nix
Raw Normal View History

2024-12-01 04:05:16 +01:00
{
config,
lib,
...
}: let
inherit (config.users) mainUser;
in {
age.secrets = lib.mkSecrets {"user-${mainUser}" = {};};
2024-02-04 21:51:11 +01:00
users = {
2024-08-18 14:54:44 +02:00
mutableUsers = false;
2024-12-30 22:52:20 +01:00
mainUser = "lukas";
2024-02-04 21:51:11 +01:00
users = {
2025-03-09 17:03:39 +01:00
root.hashedPassword = "!";
2024-12-01 04:05:16 +01:00
${mainUser} = {
2024-12-01 05:03:34 +01:00
description = "Lukas Wurzinger";
2024-07-02 00:06:05 +02:00
uid = 1000;
2024-02-04 21:51:11 +01:00
isNormalUser = true;
2024-12-01 04:05:16 +01:00
hashedPasswordFile = config.age.secrets."user-${mainUser}".path;
2024-12-30 22:52:20 +01:00
openssh.authorizedKeys.keys = builtins.attrValues config.pubkeys.users;
2025-03-09 17:33:53 +01:00
extraGroups = ["wheel"]; #TODO remove
2024-02-04 21:51:11 +01:00
};
};
};
}