add config wrapper for stylix wallpaper
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -160,7 +160,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
style = ''
|
||||
style = lib.mkAfter ''
|
||||
* {
|
||||
border: none;
|
||||
font-family: "UbuntuMono Nerd Font";
|
||||
|
||||
Reference in New Issue
Block a user