nix/config/Wallpaper.nix

19 lines
491 B
Nix
Raw Normal View History

2024-06-30 00:20:19 +03:00
{ pkgs, lib, ... }: with lib; let
2024-09-19 22:52:55 +03:00
url = "https://i.imgur.com/OpZzgJZ.png";
sha256 = "0rzcpqx4m6lg91nx465qs4flvnad4cqqr1prl0ky24r5vz3z87z5";
2024-08-22 11:15:45 +03:00
forceContrastText = false;
2024-06-25 04:04:39 +03:00
in {
options = {
module.wallpaper = {
2024-06-25 04:04:39 +03:00
forceContrastText = mkOption {
default = lib.warnIf forceContrastText "Style : Forced text contrast." forceContrastText;
2024-06-25 04:04:39 +03:00
type = types.bool;
};
path = mkOption {
default = pkgs.fetchurl { inherit url sha256; };
type = types.path;
};
};
};
}