From a7d47c8fcf7a138bd93090a462b3904ddd65364b Mon Sep 17 00:00:00 2001 From: serenity-F Date: Fri, 2 Oct 2026 20:31:34 +1000 Subject: [PATCH] tweak: changed theme --- modules/features/stylix/gotham.nix | 112 +++++++++++++++++++++++++++++ modules/system/user.nix | 2 +- 2 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 modules/features/stylix/gotham.nix diff --git a/modules/features/stylix/gotham.nix b/modules/features/stylix/gotham.nix new file mode 100644 index 0000000..67a572f --- /dev/null +++ b/modules/features/stylix/gotham.nix @@ -0,0 +1,112 @@ +{ self, inputs, ... }: + +{ + + # tokyo-night-dark theme + flake.nixosModules.gotham = + { + config, + lib, + pkgs, + user-parts, + ... + }: + + let + + # set wallpaper here + wallpaper = ../../../assets/media/wallpapers/mima-kirigoe.jpg; + + in + + { + + imports = [ + + # for home manager functionality + inputs.home-manager.nixosModules.home-manager + + # for stylix functionality + inputs.stylix.nixosModules.stylix + + ]; + + stylix = { + + # enables automatic themeing based on wallpaper + enable = true; + image = "${wallpaper}"; + polarity = "dark"; + base16Scheme = "${pkgs.base16-schemes}/share/themes/gotham.yaml"; + + # cursor settings + cursor = { + package = with pkgs; bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 25; + }; + + # font settings + fonts = { + + # point sizes for various ui elements + sizes = { + terminal = 12; + desktop = 12; + popups = 12; + applications = 12; + }; + + # emoji font to use + emoji = { + package = with pkgs; noto-fonts-color-emoji; + name = "Noto Color Emoji"; + }; + + # text fonts to use + monospace = { + package = with pkgs; spleen; + name = "Spleen 32x64"; + }; + serif = config.stylix.fonts.monospace; + sansSerif = config.stylix.fonts.monospace; + + }; + }; + + home-manager.users.${user-parts.user.username} = { + + # copies avatars from flake into home + home.file."Avatars" = { + source = ../../../assets/media/avatars; + target = "/home/${user-parts.user.username}/Pictures/Avatars"; + recursive = true; + }; + + # copies wallpapers from flake into home + home.file."Wallpapers" = { + source = ../../../assets/media/wallpapers; + target = "/home/${user-parts.user.username}/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; + terminal = 0.8; + desktop = 0.9; + popups = 0.9; + }; + + }; + + }; + + }; +} diff --git a/modules/system/user.nix b/modules/system/user.nix index 4d5979f..d037d49 100644 --- a/modules/system/user.nix +++ b/modules/system/user.nix @@ -20,7 +20,7 @@ inputs.home-manager.nixosModules.home-manager # select user theme - self.nixosModules.theme-tokyo-night + self.nixosModules.theme-gotham ];