blob: 2f4eabf060dfa1fc9609cf046fe6a89daf138715 [file] [log] [blame]
{ config, lib, ... }:
{
options.chimera = {
theme.wallpaper = lib.mkOption {
type = lib.types.path;
description = "Wallpaper of your choosing";
};
hyprland.hyprpaper.splash = {
enable = lib.mkEnableOption "Enable the hyprland splash text";
offset = lib.mkOption {
type = lib.types.float;
description = "Set the splash offset";
default = 2.0;
};
};
};
config.xdg.configFile = lib.mkIf config.chimera.hyprland.enable {
"hypr/hyprpaper.conf".source = (
builtins.toFile "hyprpaper.conf" ''
preload = ${config.chimera.theme.wallpaper}
wallpaper=,${config.chimera.theme.wallpaper}
splash = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.enable}
splash_offset = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.offset}
ipc = off
''
);
};
}