nix/module/common/Wallpaper.nix

19 lines
445 B
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ pkgs, lib, config, ... }: with lib; let
url = "https://i.imgur.com/0RldJsX.jpeg";
sha256 = "sha256-hbbUz9+m/bLahDiflAoio6+4H0DHfxlbh92cWSjE4R4=";
forceContrastText = false;
in {
options = {
module.common.wallpaper = {
forceContrastText = mkOption {
default = forceContrastText;
type = types.bool;
};
path = mkOption {
default = pkgs.fetchurl { inherit url sha256; };
type = types.path;
};
};
};
}