trying stylix

This commit is contained in:
2026-03-16 22:03:59 +00:00
parent a42bea5422
commit 91030d1e70
3 changed files with 8 additions and 46 deletions
+4 -23
View File
@@ -200,7 +200,7 @@ outputs =
modules = [ modules = [
# theming engine # theming engine
stylix.nixosModules.stylix stylix.nixosModules.stylix
# Importing Catppuccino mocha # Importing theme file
./generated/out_of_tree/core/theme.nix ./generated/out_of_tree/core/theme.nix
# Import machine-specific configurations # Import machine-specific configurations
./generated/out_of_tree/machines/traveldroid/top.nix ./generated/out_of_tree/machines/traveldroid/top.nix
@@ -621,31 +621,12 @@ You'll notice the color values in multiple places outside this as well.
#+BEGIN_SRC nix :tangle generated/out_of_tree/core/theme.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/out_of_tree/core/theme.nix :noweb tangle :mkdirp yes :eval never-html
{ pkgs, flakeRoot, ... }: { pkgs, flakeRoot, ... }:
let
catppuccin-mocha = pkgs.runCommand "catppuccin-mocha-theme" {} ''
mkdir -p $out/share/themes
ln -s ${flakeRoot}/assets/hyprland/themes/Catppuccin-Mocha-Standard-Blue-Dark $out/share/themes/
'';
in
{ {
environment.systemPackages = [ programs.stylix = {
catppuccin-mocha
];
environment.sessionVariables = {
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
GTK_ICON_THEME = "Papirus-Dark";
GTK_ENABLE_DARK_MODE = "1";
};
catppuccin = {
enable = true; enable = true;
flavor = "mocha"; settings = {
accent = "blue"; theme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml";
gtk = {
icon.enable = true;
}; };
cursors.enable = true;
}; };
} }
#+END_SRC #+END_SRC
+1 -1
View File
@@ -56,7 +56,7 @@ outputs =
modules = [ modules = [
# theming engine # theming engine
stylix.nixosModules.stylix stylix.nixosModules.stylix
# Importing Catppuccino mocha # Importing theme file
./generated/out_of_tree/core/theme.nix ./generated/out_of_tree/core/theme.nix
# Import machine-specific configurations # Import machine-specific configurations
./generated/out_of_tree/machines/traveldroid/top.nix ./generated/out_of_tree/machines/traveldroid/top.nix
+3 -22
View File
@@ -1,29 +1,10 @@
{ pkgs, flakeRoot, ... }: { pkgs, flakeRoot, ... }:
let
catppuccin-mocha = pkgs.runCommand "catppuccin-mocha-theme" {} ''
mkdir -p $out/share/themes
ln -s ${flakeRoot}/assets/hyprland/themes/Catppuccin-Mocha-Standard-Blue-Dark $out/share/themes/
'';
in
{ {
environment.systemPackages = [ programs.stylix = {
catppuccin-mocha
];
environment.sessionVariables = {
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
GTK_ICON_THEME = "Papirus-Dark";
GTK_ENABLE_DARK_MODE = "1";
};
catppuccin = {
enable = true; enable = true;
flavor = "mocha"; settings = {
accent = "blue"; theme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml";
gtk = {
icon.enable = true;
}; };
cursors.enable = true;
}; };
} }