mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 20:09:17 -05:00
23 lines
538 B
Nix
23 lines
538 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [./hyprpaper-random.nix];
|
|
|
|
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.
|
|
home.packages = with pkgs; [hyprpaper];
|
|
|
|
desktopEnv.hyprland.hyprpaper.randomWallpaper.enable = lib.mkDefault true;
|
|
|
|
xdg.configFile."hypr/hyprpaper.conf".source = ./hyprpaper.conf;
|
|
};
|
|
}
|