dotfiles/user-modules/desktop/background/glpaper/default.nix

24 lines
381 B
Nix
Raw Normal View History

2024-07-20 04:10:56 +00:00
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.glpaper;
in
{
options.modules.glpaper = {
enable = mkEnableOption "glpaper";
shader = mkOption {
type = types.path;
default = ./shaders/waves.glsl;
description = "Shader to use for the background";
};
};
config = mkIf cfg.enable { home.packages = [ pkgs.glpaper ]; };
}