nixos-configs/modules/desktop/home/hyprpaper.nix

26 lines
423 B
Nix
Raw Normal View History

2024-07-06 03:07:47 -04:00
{
lib,
pkgs,
self,
...
}: let
wallpaper = toString self.legacyPackages.${pkgs.system}.dracula.wallpaper;
in {
home.packages = with pkgs; [hyprpaper];
xdg.configFile."hypr/hyprpaper.conf" = {
text = lib.hm.generators.toHyprconf {
attrs = {
ipc = "on";
splash = false;
preload = [wallpaper];
wallpaper = [
",${wallpaper}"
];
};
};
};
}