2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [./hyprpaper-random.nix];
|
2024-04-05 15:04:06 -04:00
|
|
|
|
2024-03-30 13:58:07 -04:00
|
|
|
options = {
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.desktop.hyprland.hyprpaper.enable =
|
2024-03-30 13:58:07 -04:00
|
|
|
lib.mkEnableOption "Enables hyprpaper and assorted wallpapers.";
|
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprpaper.enable {
|
2024-03-30 13:58:07 -04:00
|
|
|
# Packages that should be installed to the user profile.
|
2024-04-07 22:16:33 -04:00
|
|
|
home.packages = with pkgs; [hyprpaper];
|
2024-03-30 13:58:07 -04:00
|
|
|
|
2024-05-04 21:42:33 -04:00
|
|
|
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
|
|
|
preload = ${config.alyraffauf.desktop.theme.wallpaper}
|
|
|
|
|
|
|
|
wallpaper = ,${config.alyraffauf.desktop.theme.wallpaper}
|
|
|
|
|
|
|
|
splash = false
|
|
|
|
'';
|
2024-03-30 13:58:07 -04:00
|
|
|
};
|
|
|
|
}
|