Files
nixos/Droidnix/generated/users/henrov.nix
T
2026-04-22 12:20:31 +02:00

50 lines
1.3 KiB
Nix

# {{{autogen}}}
{ lib, config, pkgs, ... }:
let
username = "henrov";
in
{
#################################
# NixOS system user
#################################
users.users.${username} = {
isNormalUser = true;
home = "/home/${username}";
hashedPassword = "$6$S7iShgBxB.77CwmP$i0njK.2r3OL5UEvgZbmwZ0rnpZ4QyJcv8p9uCmJ4AiVPSMXkQkIwMLzyAOnJ0q8.tPLIp/7EquEIZeK8qbmgw/";
extraGroups = [ "wheel" "networkmanager" "bluetooth" ];
ignoreShellProgramCheck = true; # <-- avoids the assertion
shell = pkgs.zsh;
};
#################################
# Home Manager user definition
#################################
home-manager.users = {
${username} = {
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "26.05";
programs.zsh.enable = true;
home.packages = [
# add packages here
];
# Activation to ensure the directory is writable
home.activation.fixStylixPermissions = ''
mkdir -p $HOME/.config
chmod -R u+rwx $HOME/.config
'';
# Locale and timezone settings
home.sessionVariables = {
LANG = "nl_NL.UTF-8";
LC_ALL = "nl_NL.UTF-8";
TZ = "Europe/Amsterdam";
};
};
};
}