2021-02-14 13:18:13 +01:00
|
|
|
|
{
|
2022-04-10 11:54:58 +02:00
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
secrets = config.my.secrets;
|
|
|
|
|
in {
|
2021-02-14 13:18:13 +01:00
|
|
|
|
users.mutableUsers = false;
|
|
|
|
|
users.users.root = {
|
2022-01-18 11:41:37 +01:00
|
|
|
|
passwordFile = config.age.secrets."users/root-hashed-password".path;
|
2021-02-14 13:18:13 +01:00
|
|
|
|
};
|
|
|
|
|
users.users.alarsyo = {
|
2022-01-18 11:41:37 +01:00
|
|
|
|
passwordFile = config.age.secrets."users/alarsyo-hashed-password".path;
|
2021-02-14 13:18:13 +01:00
|
|
|
|
isNormalUser = true;
|
2021-02-19 21:46:19 +01:00
|
|
|
|
extraGroups = [
|
|
|
|
|
"media"
|
2021-04-16 21:33:48 +02:00
|
|
|
|
"networkmanager"
|
2021-07-24 01:30:54 +02:00
|
|
|
|
"video" # for `light` permissions
|
2021-07-12 17:14:52 +02:00
|
|
|
|
"docker"
|
2021-02-19 21:46:19 +01:00
|
|
|
|
"wheel" # Enable ‘sudo’ for the user.
|
|
|
|
|
];
|
2021-02-14 13:18:13 +01:00
|
|
|
|
shell = pkgs.fish;
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
2022-11-14 19:28:56 +01:00
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMbf1C55Hgprm4Y7iNHae2UhZbLa6SNeurDTOyq2tr1G alarsyo@yubikey"
|
2021-02-14 13:18:13 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|