add config wrapper for stylix wallpaper

This commit is contained in:
2025-11-04 00:48:03 -06:00
parent e2047cba7b
commit 6ddebc86d7
2 changed files with 10 additions and 4 deletions

View File

@@ -7,20 +7,25 @@
}: let }: let
program = "stylix"; program = "stylix";
cfg = config.dots.${program}; cfg = config.dots.${program};
wallpaper = ../../../assets/wallpapers/yveltal.jpg; wallpaper = ../../../assets/wallpapers/test.jpg;
in { in {
imports = [inputs.stylix.homeModules.default]; imports = [inputs.stylix.homeModules.default];
options.dots.${program} = { options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}"; enable = lib.mkEnableOption "enables ${program}";
wallpaper = lib.mkOption {
type = lib.types.path;
default = ../../../assets/wallpapers/yveltal.jpg;
description = "set the wallpaper for stylix to set and theme with";
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
stylix = { stylix = {
enable = true; enable = true;
#autoEnable = false; #autoEnable = false;
image = wallpaper; image = cfg.wallpaper;
polarity = "dark"; polarity = "dark";
cursor = { cursor = {
package = pkgs.posy-cursors; package = pkgs.posy-cursors;
@@ -59,7 +64,8 @@ in {
}; };
targets = { targets = {
waybar.enable = false; #waybar.enable = false;
waybar.addCss = false;
nvf.transparentBackground = true; nvf.transparentBackground = true;
}; };
}; };

View File

@@ -160,7 +160,7 @@ in {
}; };
}; };
style = '' style = lib.mkAfter ''
* { * {
border: none; border: none;
font-family: "UbuntuMono Nerd Font"; font-family: "UbuntuMono Nerd Font";