2023-05-28 02:00:10 +02:00
|
|
|
{ pkgs, outputs, config, lib, ... }:
|
2023-01-10 02:38:06 +01:00
|
|
|
{
|
2024-01-31 20:03:00 +01:00
|
|
|
sops.secrets.adrielus_password = {
|
|
|
|
sopsFile = ../secrets.yaml;
|
|
|
|
neededForUsers = true;
|
|
|
|
};
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
users = {
|
|
|
|
# Configure users through nix only
|
|
|
|
mutableUsers = false;
|
|
|
|
|
|
|
|
# Create an user named adrielus
|
|
|
|
users.adrielus = {
|
2023-05-28 02:00:10 +02:00
|
|
|
# Adds me to some default groups, and creates the home dir
|
|
|
|
isNormalUser = true;
|
2023-01-12 20:49:08 +01:00
|
|
|
|
2023-12-12 14:32:06 +01:00
|
|
|
# Picked up by our persistence module
|
|
|
|
homeMode = "755";
|
|
|
|
|
2023-01-10 02:38:06 +01:00
|
|
|
# Add user to the following groups
|
|
|
|
extraGroups = [
|
2023-05-28 02:00:10 +02:00
|
|
|
"wheel" # Access to sudo
|
|
|
|
"lp" # Printers
|
|
|
|
"audio" # Audio devices
|
|
|
|
"video" # Webcam and the like
|
2023-07-06 21:34:24 +02:00
|
|
|
"network" # wpa_supplicant
|
2023-07-17 16:50:07 +02:00
|
|
|
"syncthing" # syncthing!
|
2023-01-10 02:38:06 +01:00
|
|
|
];
|
|
|
|
|
2024-01-31 20:03:00 +01:00
|
|
|
hashedPasswordFile = config.sops.secrets.adrielus_password.path;
|
|
|
|
shell = pkgs.fish;
|
|
|
|
|
2023-01-12 20:49:08 +01:00
|
|
|
openssh.authorizedKeys.keyFiles =
|
2023-05-28 05:24:36 +02:00
|
|
|
(import ./common.nix).authorizedKeys { inherit outputs lib; };
|
2023-01-12 20:49:08 +01:00
|
|
|
};
|
2023-01-10 02:38:06 +01:00
|
|
|
};
|
|
|
|
}
|