nixcfg/homeManagerModules/desktop/hypr/hyprpaper/default.nix
Aly Raffauf edcde5ae14 hyprland: use theme module for colors and cursors
hyprpaper: use default wallpaper from theme module
2024-05-04 21:51:49 -04:00

27 lines
613 B
Nix

{
pkgs,
lib,
config,
...
}: {
imports = [./hyprpaper-random.nix];
options = {
alyraffauf.desktop.hyprland.hyprpaper.enable =
lib.mkEnableOption "Enables hyprpaper and assorted wallpapers.";
};
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprpaper.enable {
# Packages that should be installed to the user profile.
home.packages = with pkgs; [hyprpaper];
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${config.alyraffauf.desktop.theme.wallpaper}
wallpaper = ,${config.alyraffauf.desktop.theme.wallpaper}
splash = false
'';
};
}