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-02-04 21:51:11 +01:00
|
|
|
users = {
|
2024-09-15 18:07:59 +02:00
|
|
|
root = {
|
|
|
|
hashedPassword = "!";
|
|
|
|
openssh.authorizedKeys.keys = builtins.attrValues (import ../pubkeys.nix).hosts;
|
|
|
|
};
|
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-04-13 22:29:14 +02:00
|
|
|
openssh.authorizedKeys.keys = builtins.attrValues (import ../pubkeys.nix).users;
|
2024-09-15 14:17:08 +02:00
|
|
|
extraGroups = ["wheel"];
|
2024-02-04 21:51:11 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|