nix/module/Wallpaper.nix

21 lines
484 B
Nix
Raw Normal View History

2024-11-04 04:37:29 +03:00
{
pkgs,
lib,
...
}: let
2024-11-13 04:18:19 +03:00
url = "https://i.imgur.com/GeEHWQm.jpeg";
sha256 = "sha256-9AxuUCF9qfC6xpgWDNBUv4SK/l1RaKndO50dQYIgNsE=";
2024-11-04 04:37:29 +03:00
forceContrastText = false;
in {
options.module.wallpaper = {
forceContrastText = lib.mkOption {
default = lib.warnIf forceContrastText "Wallpaper: Forced text contrast." forceContrastText;
type = lib.types.bool;
};
path = lib.mkOption {
default = pkgs.fetchurl { inherit url sha256; };
type = lib.types.path;
};
};
}