nix/option/Wallpaper.nix

20 lines
528 B
Nix
Raw Normal View History

2024-11-16 04:43:59 +03:00
# Download the wallpaper here.
{ pkgs, lib, ... }:
let
url = "https://i.imgur.com/XG8bA49.jpeg";
sha256 = "sha256-xVdZ8wSN+PMoX1z7mdF9d4Gklxt41jASvz/LYtfGosE=";
forceContrastText = false;
in
2024-11-04 04:37:29 +03:00
{
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;
};
};
2024-11-04 04:37:29 +03:00
}