45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
users.mutableUsers = false;
|
|
|
|
# Enable automatic login for the user.
|
|
services.getty.autologinUser = "wieerwill";
|
|
|
|
users.users.wieerwill = {
|
|
isNormalUser = true;
|
|
description = "wieerwill";
|
|
home = "/home/wieerwill";
|
|
createHome = true;
|
|
|
|
extraGroups = [
|
|
"wheel" # sudo access
|
|
"networkmanager" # network config
|
|
"audio" "video" # media and graphics support
|
|
"docker" # container management
|
|
"libvirtd" # virtualization
|
|
"input" # gamepad / touchscreen
|
|
"plugdev" # udev/USB access
|
|
"git"
|
|
];
|
|
|
|
# leave empty if managed externally (passwd or sops)
|
|
initialHashedPassword = "";
|
|
|
|
#openssh.authorizedKeys.keys = [
|
|
# # Replace with your actual SSH pubkey
|
|
# "ssh-ed25519 AAAAC3Nz... user@machine"
|
|
#];
|
|
|
|
packages = with pkgs; [
|
|
zsh
|
|
];
|
|
shell = pkgs.zsh;
|
|
};
|
|
programs.zsh.enable = true;
|
|
|
|
# Optional system-wide group definition for shared development tools
|
|
users.groups.git.gid = 998;
|
|
users.groups.plugdev = { };
|
|
}
|