nix/config/Wallpaper.nix

19 lines
486 B
Nix
Raw Normal View History

2024-06-30 00:20:19 +03:00
{ pkgs, lib, ... }: with lib; let
2024-09-30 00:44:04 +03:00
url = "https://i.imgur.com/FdOgt6q.png";
sha256 = "0in90ap2bqfii4ly0c1h2shp2xrgbcvfdh1pxd63fdvyb99x0r47";
forceContrastText = true;
2024-06-25 04:04:39 +03:00
in {
options = {
module.wallpaper = {
2024-06-25 04:04:39 +03:00
forceContrastText = mkOption {
2024-09-29 22:09:26 +03:00
default = 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;
};
};
};
}