[fix] stylix: respect enable option
This commit is contained in:
parent
0b9554b1bb
commit
ded9630aff
3 changed files with 3 additions and 6 deletions
|
@ -27,10 +27,7 @@ in {
|
||||||
++ lib.optionals (stylix != null) [
|
++ lib.optionals (stylix != null) [
|
||||||
stylix.homeManagerModules.stylix
|
stylix.homeManagerModules.stylix
|
||||||
{
|
{
|
||||||
stylix.image = builtins.fetchurl {
|
stylix.image = cfg.sway.background;
|
||||||
url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png";
|
|
||||||
sha256 = "036gqhbf6s5ddgvfbgn6iqbzgizssyf7820m5815b2gd748jw8zc";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
styling.options = {
|
styling.options = {
|
||||||
enable = mkDisableOption "jalil's default styling (cannot be disabled currently)";
|
enable = mkDisableOption "jalil's default styling (disables stylix)";
|
||||||
wallpaper = mkImageOption {
|
wallpaper = mkImageOption {
|
||||||
description = "The wallpaper to use.";
|
description = "The wallpaper to use.";
|
||||||
url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png";
|
url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png";
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
}: let
|
}: let
|
||||||
cfg = config.jconfig.styling;
|
cfg = config.jconfig.styling;
|
||||||
in {
|
in {
|
||||||
autoEnable = cfg.enable;
|
inherit (cfg) enable;
|
||||||
image = cfg.wallpaper;
|
image = cfg.wallpaper;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
|
|
Loading…
Add table
Reference in a new issue