From b2529052404f2276220c1a3eba3bc57edee33496 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Mon, 12 Jan 2026 16:44:48 +1000 Subject: [PATCH] template stylix config --- flake.nix | 5 ++-- home/resources/theme/stylix.nix | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 home/resources/theme/stylix.nix diff --git a/flake.nix b/flake.nix index ebf154e..2070ab9 100755 --- a/flake.nix +++ b/flake.nix @@ -107,7 +107,7 @@ # Easy themeing (Switch to stylix) - # - https://github.com/nix-community/stylix # - https://github.com/Misterio77/nix-colors - #stylix = { url = "github:danth/stylix"; }; + stylix = { url = "github:danth/stylix"; }; nix-colors = { url = "github:misterio77/nix-colors"; }; # Custom 'Sygil' plymouth boot theme [WIP] # - https://codeberg.org/serenity-F/sygil-plymouth @@ -116,7 +116,7 @@ }; outputs = - { self, nixpkgs, sops-nix, home-manager, musnix, niri, noctalia, ... } + { self, nixpkgs, sops-nix, home-manager, musnix, niri, noctalia, stylix, ... } @inputs: let @@ -155,6 +155,7 @@ ./core/hosts/hades sops-nix.nixosModules.sops musnix.nixosModules.musnix + stylix.nixosModules.stylix home-manager.nixosModules.home-manager { home-manager = { diff --git a/home/resources/theme/stylix.nix b/home/resources/theme/stylix.nix new file mode 100644 index 0000000..f7d9643 --- /dev/null +++ b/home/resources/theme/stylix.nix @@ -0,0 +1,51 @@ +{ pkgs, ... }: +{ + stylix = { + + # global cursor + cursor = { + + }; + + # global fonts + fonts = { + + }; + + # global opacity + opacity = { + applications = 1.0; + terminal = 0.98; + desktop = 1.0; + popups = 0.98; + }; + + + # 'light' or 'dark' or 'either' + polarity = "dark"; + + # image to generate scheme from + image = path/to/wallpaper.img; + + # defined colour scheme + base16Scheme = { + base 00 = " "; + base 01 = " "; + base 02 = " "; + base 03 = " "; + base 04 = " "; + base 05 = " "; + base 06 = " "; + base 07 = " "; + base 08 = " "; + base 09 = " "; + base 0A = " "; + base 0B = " "; + base 0C = " "; + base 0D = " "; + base 0E = " "; + base 0f = " "; + }; + + }; +}