{ config, pkgs, lib, ... }: let username = "henrov"; moduleName = "nixos-users"; in { # Optional but common: declare defaults for user shells users.defaultUserShell = pkgs.zsh; users.users.${username} = { isNormalUser = true; # Add your user to groups needed for admin + network + typical desktop input/video access extraGroups = [ "wheel" "networkmanager" "video" "input" "audio" ]; # If you want zsh explicitly per-user (instead of defaultUserShell): # shell = pkgs.zsh; }; # If you want a simple "proof this module was applied" marker at the *system* level: # (This creates /etc/nixos-users.loaded) environment.etc."nixos-users.loaded".text = "loaded\n"; }