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

30 lines
526 B
Nix
Raw Normal View History

self: {
lib,
pkgs,
...
}: {
config = 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}"
];
};
};
};
};
# For accurate stack trace
_file = ./hyprpaper.nix;
}