36 lines
1,001 B
Nix
36 lines
1,001 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
# Password file stored through agenix
|
|
age.secrets.adrielusPassword.file = ./adrielus_password.age;
|
|
|
|
users = {
|
|
# Configure users through nix only
|
|
mutableUsers = false;
|
|
|
|
# Create an user named adrielus
|
|
users.adrielus = {
|
|
# File containing my password, managed by agenix
|
|
passwordFile = config.age.secrets.adrielusPassword.path;
|
|
|
|
# Add user to the following groups
|
|
extraGroups = [
|
|
"wheel" # access to sudo
|
|
"network" # for wireless stuff
|
|
"networkmanager" # I assume this let's me access network stuff?
|
|
"lp" # Allows me to use printers
|
|
"docker" # Allows me to use docker (?)
|
|
"audio" # Allows me to use audio devices
|
|
"video" # Allows me to use a webcam
|
|
|
|
# TODO: find out why I added these here a long time ago
|
|
"sound"
|
|
"input"
|
|
"tty"
|
|
];
|
|
|
|
# Adds me to some default groups, and creates the home dir
|
|
isNormalUser = true;
|
|
};
|
|
};
|
|
}
|