[fix] stylix: respect enable option

This commit is contained in:
github-actions[bot] 2024-05-24 04:29:14 +00:00 committed by Jalil David Salamé Messina
parent 0b9554b1bb
commit ded9630aff
3 changed files with 3 additions and 6 deletions

View file

@ -27,10 +27,7 @@ in {
++ lib.optionals (stylix != null) [
stylix.homeManagerModules.stylix
{
stylix.image = builtins.fetchurl {
url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png";
sha256 = "036gqhbf6s5ddgvfbgn6iqbzgizssyf7820m5815b2gd748jw8zc";
};
stylix.image = cfg.sway.background;
}
];

View file

@ -38,7 +38,7 @@
};
styling.options = {
enable = mkDisableOption "jalil's default styling (cannot be disabled currently)";
enable = mkDisableOption "jalil's default styling (disables stylix)";
wallpaper = mkImageOption {
description = "The wallpaper to use.";
url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png";

View file

@ -4,7 +4,7 @@
}: let
cfg = config.jconfig.styling;
in {
autoEnable = cfg.enable;
inherit (cfg) enable;
image = cfg.wallpaper;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
polarity = "dark";