From f6ed7da8631321cb7f5fa39e0c537323e34515db Mon Sep 17 00:00:00 2001 From: serenity-F Date: Mon, 28 Sep 2026 04:24:43 +1000 Subject: [PATCH] tweak: changed theme --- modules/features/stylix/atelier-plateau.nix | 114 ++++++++++++++++++++ modules/users/serenity.nix | 2 +- 2 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 modules/features/stylix/atelier-plateau.nix diff --git a/modules/features/stylix/atelier-plateau.nix b/modules/features/stylix/atelier-plateau.nix new file mode 100644 index 0000000..bd83af8 --- /dev/null +++ b/modules/features/stylix/atelier-plateau.nix @@ -0,0 +1,114 @@ +{ self, inputs, ... }: + +{ + + # atelier-plateau theme + flake.nixosModules.theme-atelier-plateau = + { + config, + lib, + pkgs, + ... + }: + + let + + # set wallpaper here + wallpaper = ../../../assets/media/wallpapers/mimaKirigoe.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.base15-schemes}/share/themes/atelier-plateau.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.serenity = { + + # copies avatar from flake into home + home.file."Avatar" = { + source = ../../../assets/media/avatar.png; + target = "/home/serenity/Pictures/Avatars/"; + recursive = true; + }; + + # copies wallpaper from flake into home + 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; + terminal = 0.8; + desktop = 1.0; + popups = 0.9; + }; + + # application icons to use + #icons = { }; + + }; + + }; + + }; +} diff --git a/modules/users/serenity.nix b/modules/users/serenity.nix index 521669c..0f7aad2 100644 --- a/modules/users/serenity.nix +++ b/modules/users/serenity.nix @@ -24,7 +24,7 @@ #self.nixosModules.user-options # select user theme - self.nixosModules.theme-autogen + self.nixosModules.theme-atelier-plateau ];