From 7abd3c48e0dcc0d201123467e8481289fb08c363 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Thu, 24 Sep 2026 07:06:38 +1000 Subject: [PATCH] feat: added stylix options --- modules/themes/theme.nix | 78 +++++++++++++++++++++++++++++++++------- 1 file changed, 65 insertions(+), 13 deletions(-) diff --git a/modules/themes/theme.nix b/modules/themes/theme.nix index 27bf4fc..d89ca28 100644 --- a/modules/themes/theme.nix +++ b/modules/themes/theme.nix @@ -10,28 +10,80 @@ ... }: + let + wallpaper = ../../assets/media/wallpapers/mimaKirigoe.jpg; + in + { # for home manager functionality imports = [ inputs.home-manager.nixosModules.home-manager ]; + stylix = { + + # enables automatic themeing based on wallpaper + enable = true; + image = ${wallpaper}; + + # cursor settings + cursor = { + package = with pkgs; bibata-cursors; + name = "Bibata-Modern"; + size = 25; + }; + + # font settings + fonts = { + + # point sizes for various ui elements + #sizes = { + #terminal = 10; + #desktop = 10; + #popups = 10; + #applications = 12; + #}; + + # emoji font to use + emoji = { + package = with pkgs; noto-fonts-color-emoji; + name = "Noto Color Emoji"; + }; + + # text fonts to use + #monospace = { }; + #serif = config.stylix.fonts.sansSerif; + #sansSerif = { }; + + }; + }; + home-manager.users.serenity = { - home = { + # copies avatar from flake into home + home.file."avatar" = { + source = ../../assets/media/avatar.png; + target = "/home/serenity/Pictures/Avatars"; + recursive = true; + }; - # copies avatar from flake into home - file."avatar" = { - source = ../../assets/media/avatar.png; - target = "/home/serenity/Pictures/Avatars"; - recursive = true; - }; + # copies wallpaper from flake into home + home.file."wallpaper" = { + source = ${wallpaper}; + target = "/home/serenity/Pictures/Wallpapers"; + recursive = true; + }; - # copies wallpapers from flake into home - file."wallpapers" = { - source = ../../assets/media/wallpapers; - target = "/home/serenity/Pictures/Wallpapers"; - recursive = true; - }; + stylix = { + + # skews theme towards dark mode + polarity = "dark"; + + # opacity settings + # 1.0 is opaque, 0.0 is transparent + opacity.applications = 0.8; + + # application icons to use + #icons = { }; };