diff --git a/Droidnix/README.org b/Droidnix/README.org index 8c155c28c..a2bdbd137 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -1080,7 +1080,6 @@ let in { - ################################# # NixOS system user ################################# @@ -1088,7 +1087,7 @@ in isNormalUser = true; home = "/home/${username}"; hashedPassword = "$6$S7iShgBxB.77CwmP$i0njK.2r3OL5UEvgZbmwZ0rnpZ4QyJcv8p9uCmJ4AiVPSMXkQkIwMLzyAOnJ0q8.tPLIp/7EquEIZeK8qbmgw/"; - extraGroups = [ "wheel" "networkmanager" ]; + extraGroups = [ "wheel" "networkmanager" ]; }; ################################# @@ -1096,20 +1095,26 @@ in ################################# _module.args.hmUsers = { ${username} = { - # Minimal required home.username = username; home.homeDirectory = "/home/${username}"; home.stateVersion = "26.05"; - # Add user-specific packages here home.packages = [ + # add packages here ]; - # Add user dotfiles, session variables, etc. here if needed home.file = { - # Example: - # ".bashrc" = { source = /path/to/bashrc; }; + # 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 + ''; }; }; } diff --git a/Droidnix/generated/users/henrov.nix b/Droidnix/generated/users/henrov.nix index 72861ceec..3e187dd3a 100644 --- a/Droidnix/generated/users/henrov.nix +++ b/Droidnix/generated/users/henrov.nix @@ -5,7 +5,6 @@ let in { - ################################# # NixOS system user ################################# @@ -13,7 +12,7 @@ in isNormalUser = true; home = "/home/${username}"; hashedPassword = "$6$S7iShgBxB.77CwmP$i0njK.2r3OL5UEvgZbmwZ0rnpZ4QyJcv8p9uCmJ4AiVPSMXkQkIwMLzyAOnJ0q8.tPLIp/7EquEIZeK8qbmgw/"; - extraGroups = [ "wheel" "networkmanager" ]; + extraGroups = [ "wheel" "networkmanager" ]; }; ################################# @@ -21,20 +20,26 @@ in ################################# _module.args.hmUsers = { ${username} = { - # Minimal required home.username = username; home.homeDirectory = "/home/${username}"; home.stateVersion = "26.05"; - # Add user-specific packages here home.packages = [ + # add packages here ]; - # Add user dotfiles, session variables, etc. here if needed home.file = { - # Example: - # ".bashrc" = { source = /path/to/bashrc; }; + # 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 + ''; }; }; }