change from mono-home-manager to full flake multi-system configuration
This commit is contained in:
44
modules/users.nix
Normal file
44
modules/users.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ 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 = { };
|
||||
}
|
||||
Reference in New Issue
Block a user