Regenerated

This commit is contained in:
2026-03-25 17:06:20 +00:00
parent 752f1228cf
commit ab213aaffc
2 changed files with 25 additions and 25 deletions
@@ -4,19 +4,15 @@ let
username = config.defaultUser or "henrov";
moduleName = "stylix";
# Path to stylix assets
assetPath = "${flakeRoot}/assets/traveldroid/conf/${moduleName}";
# Read all files in the asset directory
assetFiles = builtins.attrNames (builtins.readDir assetPath);
# Convert files to Home Manager entries (same pattern as hyprland)
# Same pattern as hyprland
stylixFiles = lib.genAttrs assetFiles (f: {
name = ".config/${moduleName}/${f}";
value = { source = "${assetPath}/${f}"; };
});
# Optional stylix.conf
stylixConfFile = "${assetPath}/stylix.conf";
stylixConf =
if builtins.pathExists stylixConfFile
@@ -28,7 +24,7 @@ let
in
{
#################################
# IMPORTANT: Enable Stylix module
# Enable Stylix module
#################################
imports = [
stylix.nixosModules.stylix
@@ -43,7 +39,7 @@ in
];
#################################
# Stylix system configuration
# Stylix system config
#################################
stylix = {
enable = true;
@@ -53,7 +49,7 @@ in
targets = {
gtk.enable = true;
qt.enable = true; # optional but recommended
qt.enable = true;
};
cursor = {
@@ -63,15 +59,16 @@ in
};
#################################
# Home Manager user-level config
# Home Manager (safe merge)
#################################
_module.args.hmUsers = {
"${username}" = {
home.file = lib.mkMerge (
stylixFiles // {
home.file = lib.mkMerge [
stylixFiles
{
"${moduleName}/stylix.conf".text = stylixConf;
}
);
];
home.sessionVariables = {
STYLIX_CONF = "$HOME/.config/stylix/stylix.conf";
@@ -80,6 +77,9 @@ in
HYPRCURSOR_THEME = cursorName;
HYPRCURSOR_SIZE = toString cursorSize;
};
# Prevent GTK conflicts with your gtk.nix
gtk.theme.name = lib.mkDefault "adw-gtk3";
};
};
}