Files
nixos/Droidnix/generated/users/henrov.nix
T
2026-03-25 18:01:41 +00:00

46 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" ];
};
#################################
# Home Manager user definition
#################################
_module.args.hmUsers = {
${username} = {
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "26.05";
home.packages = [
# add packages here
];
home.file = {
# Ensure stylix directory exists with correct permissions
".config/stylix/.keep" = {
source = null; # just create the directory
mode = "0755"; # rwx for owner, rx for group/others
};
};
# Activation to ensure the directory is writable before symlinks
home.activation.fixStylixPermissions = lib.hm.dag.entryAfter ["writeBoundary"] ''
chmod u+rwx $HOME/.config
'';
};
};
}