Regenerated

This commit is contained in:
2026-03-25 16:47:43 +00:00
parent e4e93a9e82
commit 9f5ea7a31f
2 changed files with 68 additions and 20 deletions
+34 -10
View File
@@ -700,7 +700,7 @@ in
** =generated/modules/traveldroid/desktop/stylix.nix= ** =generated/modules/traveldroid/desktop/stylix.nix=
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/desktop/stylix.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/modules/traveldroid/desktop/stylix.nix :noweb tangle :mkdirp yes :eval never-html
{ lib, config, pkgs, flakeRoot, ... }: { lib, config, pkgs, flakeRoot, stylix, ... }:
let let
username = config.defaultUser or "henrov"; username = config.defaultUser or "henrov";
@@ -712,7 +712,7 @@ let
# Read all files in the asset directory # Read all files in the asset directory
assetFiles = builtins.attrNames (builtins.readDir assetPath); assetFiles = builtins.attrNames (builtins.readDir assetPath);
# Convert files to Home Manager xdg config entries # Convert files to Home Manager entries (same pattern as hyprland)
stylixFiles = lib.genAttrs assetFiles (f: { stylixFiles = lib.genAttrs assetFiles (f: {
name = ".config/${moduleName}/${f}"; name = ".config/${moduleName}/${f}";
value = { source = "${assetPath}/${f}"; }; value = { source = "${assetPath}/${f}"; };
@@ -725,32 +725,56 @@ let
then builtins.readFile stylixConfFile then builtins.readFile stylixConfFile
else ""; else "";
# Cursor defaults
cursorName = "phinger-cursors-light"; cursorName = "phinger-cursors-light";
cursorSize = 24; cursorSize = 24;
in in
{ {
############################ #################################
# IMPORTANT: Enable Stylix module
#################################
imports = [
stylix.nixosModules.stylix
];
#################################
# System packages # System packages
############################ #################################
environment.systemPackages = [ environment.systemPackages = [
pkgs.feh pkgs.feh
pkgs.st pkgs.st
]; ];
############################ #################################
# Home Manager user-level configuration # Stylix system configuration
############################ #################################
stylix = {
enable = true;
base16Scheme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml";
polarity = "dark";
targets = {
gtk.enable = true;
qt.enable = true; # optional but recommended
};
cursor = {
name = cursorName;
size = cursorSize;
};
};
#################################
# Home Manager user-level config
#################################
_module.args.hmUsers = { _module.args.hmUsers = {
"${username}" = { "${username}" = {
# Merge all Stylix files + optional stylix.conf
home.file = lib.mkMerge ( home.file = lib.mkMerge (
stylixFiles // { stylixFiles // {
"${moduleName}/stylix.conf".text = stylixConf; "${moduleName}/stylix.conf".text = stylixConf;
} }
); );
# Session variables for Stylix & cursors
home.sessionVariables = { home.sessionVariables = {
STYLIX_CONF = "$HOME/.config/stylix/stylix.conf"; STYLIX_CONF = "$HOME/.config/stylix/stylix.conf";
XCURSOR_THEME = cursorName; XCURSOR_THEME = cursorName;
@@ -1,4 +1,4 @@
{ lib, config, pkgs, flakeRoot, ... }: { lib, config, pkgs, flakeRoot, stylix, ... }:
let let
username = config.defaultUser or "henrov"; username = config.defaultUser or "henrov";
@@ -10,7 +10,7 @@ let
# Read all files in the asset directory # Read all files in the asset directory
assetFiles = builtins.attrNames (builtins.readDir assetPath); assetFiles = builtins.attrNames (builtins.readDir assetPath);
# Convert files to Home Manager xdg config entries # Convert files to Home Manager entries (same pattern as hyprland)
stylixFiles = lib.genAttrs assetFiles (f: { stylixFiles = lib.genAttrs assetFiles (f: {
name = ".config/${moduleName}/${f}"; name = ".config/${moduleName}/${f}";
value = { source = "${assetPath}/${f}"; }; value = { source = "${assetPath}/${f}"; };
@@ -23,32 +23,56 @@ let
then builtins.readFile stylixConfFile then builtins.readFile stylixConfFile
else ""; else "";
# Cursor defaults
cursorName = "phinger-cursors-light"; cursorName = "phinger-cursors-light";
cursorSize = 24; cursorSize = 24;
in in
{ {
############################ #################################
# IMPORTANT: Enable Stylix module
#################################
imports = [
stylix.nixosModules.stylix
];
#################################
# System packages # System packages
############################ #################################
environment.systemPackages = [ environment.systemPackages = [
pkgs.feh pkgs.feh
pkgs.st pkgs.st
]; ];
############################ #################################
# Home Manager user-level configuration # Stylix system configuration
############################ #################################
stylix = {
enable = true;
base16Scheme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml";
polarity = "dark";
targets = {
gtk.enable = true;
qt.enable = true; # optional but recommended
};
cursor = {
name = cursorName;
size = cursorSize;
};
};
#################################
# Home Manager user-level config
#################################
_module.args.hmUsers = { _module.args.hmUsers = {
"${username}" = { "${username}" = {
# Merge all Stylix files + optional stylix.conf
home.file = lib.mkMerge ( home.file = lib.mkMerge (
stylixFiles // { stylixFiles // {
"${moduleName}/stylix.conf".text = stylixConf; "${moduleName}/stylix.conf".text = stylixConf;
} }
); );
# Session variables for Stylix & cursors
home.sessionVariables = { home.sessionVariables = {
STYLIX_CONF = "$HOME/.config/stylix/stylix.conf"; STYLIX_CONF = "$HOME/.config/stylix/stylix.conf";
XCURSOR_THEME = cursorName; XCURSOR_THEME = cursorName;