From cf8b93c984eeb56ac0c08916e7f2e541b0c4a7c8 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 08:17:15 +0000 Subject: [PATCH] trying stylix --- Droidnix/README.org | 13 +++++++++++-- Droidnix/assets/hyprland/conf/hypr/theming.conf | 7 +++++-- Droidnix/flake.nix | 5 ++++- Droidnix/generated/out_of_tree/core/theme.nix | 8 +++++++- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/Droidnix/README.org b/Droidnix/README.org index e08625ac0..36933401f 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -205,7 +205,7 @@ outputs = # Importing theme file ./generated/out_of_tree/core/theme.nix # Import machine-specific configurations - ./generated/out_of_tree/machines/traveldroid/top.nix + ./generated/out_of_tree/machines/${machine}/top.nix # Catppuccin theme module # catppuccin.nixosModules.catppuccin # Anchoring all the other nixes @@ -215,6 +215,9 @@ outputs = { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; + home-manager.sharedModules = [ + stylix.homeManagerModules.stylix + ]; home-manager.extraSpecialArgs = { inherit user inputs flakeRoot; }; } ]; @@ -599,10 +602,16 @@ 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 { pkgs, flakeRoot, ... }: { - stylix = { + stylix = { enable = true; base16Scheme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml"; + polarity = "dark"; + targets = { + gtk.enable = true; + kde.enable = false; + gnome.enable = false; }; + }; } #+END_SRC diff --git a/Droidnix/assets/hyprland/conf/hypr/theming.conf b/Droidnix/assets/hyprland/conf/hypr/theming.conf index 862017ab5..e89a3f1ef 100644 --- a/Droidnix/assets/hyprland/conf/hypr/theming.conf +++ b/Droidnix/assets/hyprland/conf/hypr/theming.conf @@ -32,7 +32,7 @@ $rosewater = #f5e0dc general { gaps_in = 2 gaps_out = 4 - border_size = 2 + border_size = 4 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = $inactive layout = scrolling @@ -41,7 +41,10 @@ general { } decoration { - rounding = 6 + rounding = 8 + drop_shadow = true + shadow_range = 10 + shadow_render_power = 3 } # Input fields (e.g., Hyprctl menus) diff --git a/Droidnix/flake.nix b/Droidnix/flake.nix index 9baea6c70..7ac2d19ec 100644 --- a/Droidnix/flake.nix +++ b/Droidnix/flake.nix @@ -61,7 +61,7 @@ outputs = # Importing theme file ./generated/out_of_tree/core/theme.nix # Import machine-specific configurations - ./generated/out_of_tree/machines/traveldroid/top.nix + ./generated/out_of_tree/machines/${machine}/top.nix # Catppuccin theme module # catppuccin.nixosModules.catppuccin # Anchoring all the other nixes @@ -71,6 +71,9 @@ outputs = { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; + home-manager.sharedModules = [ + stylix.homeManagerModules.stylix + ]; home-manager.extraSpecialArgs = { inherit user inputs flakeRoot; }; } ]; diff --git a/Droidnix/generated/out_of_tree/core/theme.nix b/Droidnix/generated/out_of_tree/core/theme.nix index 0fa5d19bc..f0eb19ce8 100644 --- a/Droidnix/generated/out_of_tree/core/theme.nix +++ b/Droidnix/generated/out_of_tree/core/theme.nix @@ -1,7 +1,13 @@ { pkgs, flakeRoot, ... }: { - stylix = { + stylix = { enable = true; base16Scheme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml"; + polarity = "dark"; + targets = { + gtk.enable = true; + kde.enable = false; + gnome.enable = false; }; + }; }