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
program = "stylix";
cfg = config.dots.${program};
wallpaper = ../../../assets/wallpapers/yveltal.jpg;
wallpaper = ../../../assets/wallpapers/test.jpg;
in {
imports = [inputs.stylix.homeModules.default];
options.dots.${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 {
stylix = {
enable = true;
#autoEnable = false;
image = wallpaper;
image = cfg.wallpaper;
polarity = "dark";
cursor = {
package = pkgs.posy-cursors;
@@ -59,7 +64,8 @@ in {
};
targets = {
waybar.enable = false;
#waybar.enable = false;
waybar.addCss = false;
nvf.transparentBackground = true;
};
};

View File

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