diff --git a/home/default.nix b/home/default.nix index 10c5fff..761e808 100644 --- a/home/default.nix +++ b/home/default.nix @@ -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; } ]; diff --git a/system/options.nix b/system/options.nix index 97be879..c976ee6 100644 --- a/system/options.nix +++ b/system/options.nix @@ -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"; diff --git a/system/stylix-config.nix b/system/stylix-config.nix index b57419a..d91e242 100644 --- a/system/stylix-config.nix +++ b/system/stylix-config.nix @@ -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";