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 = {
|
|
|
|
desktopEnv.hyprland.hyprpaper.enable =
|
|
|
|
lib.mkEnableOption "Enables hyprpaper and assorted wallpapers.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.desktopEnv.hyprland.hyprpaper.enable {
|
|
|
|
# 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-04-05 15:04:06 -04:00
|
|
|
desktopEnv.hyprland.hyprpaper.randomWallpaper.enable = lib.mkDefault true;
|
|
|
|
|
2024-03-30 13:58:07 -04:00
|
|
|
xdg.configFile."hypr/hyprpaper.conf".source = ./hyprpaper.conf;
|
|
|
|
};
|
|
|
|
}
|