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=
#+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
username = config.defaultUser or "henrov";
@@ -712,7 +712,7 @@ let
# Read all files in the asset directory
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: {
name = ".config/${moduleName}/${f}";
value = { source = "${assetPath}/${f}"; };
@@ -725,32 +725,56 @@ let
then builtins.readFile stylixConfFile
else "";
# Cursor defaults
cursorName = "phinger-cursors-light";
cursorSize = 24;
in
{
############################
#################################
# IMPORTANT: Enable Stylix module
#################################
imports = [
stylix.nixosModules.stylix
];
#################################
# System packages
############################
#################################
environment.systemPackages = [
pkgs.feh
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 = {
"${username}" = {
# Merge all Stylix files + optional stylix.conf
home.file = lib.mkMerge (
stylixFiles // {
"${moduleName}/stylix.conf".text = stylixConf;
}
);
# Session variables for Stylix & cursors
home.sessionVariables = {
STYLIX_CONF = "$HOME/.config/stylix/stylix.conf";
XCURSOR_THEME = cursorName;
@@ -1,4 +1,4 @@
{ lib, config, pkgs, flakeRoot, ... }:
{ lib, config, pkgs, flakeRoot, stylix, ... }:
let
username = config.defaultUser or "henrov";
@@ -10,7 +10,7 @@ let
# Read all files in the asset directory
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: {
name = ".config/${moduleName}/${f}";
value = { source = "${assetPath}/${f}"; };
@@ -23,32 +23,56 @@ let
then builtins.readFile stylixConfFile
else "";
# Cursor defaults
cursorName = "phinger-cursors-light";
cursorSize = 24;
in
{
############################
#################################
# IMPORTANT: Enable Stylix module
#################################
imports = [
stylix.nixosModules.stylix
];
#################################
# System packages
############################
#################################
environment.systemPackages = [
pkgs.feh
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 = {
"${username}" = {
# Merge all Stylix files + optional stylix.conf
home.file = lib.mkMerge (
stylixFiles // {
"${moduleName}/stylix.conf".text = stylixConf;
}
);
# Session variables for Stylix & cursors
home.sessionVariables = {
STYLIX_CONF = "$HOME/.config/stylix/stylix.conf";
XCURSOR_THEME = cursorName;