49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ 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";
|
|
};
|
|
};
|
|
};
|
|
}
|