nixos-configs/nixosModules/desktop/theme/hyprpaper.nix
matt1432 94bd0d81f5
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(desktop): place all theming config in same folder
2024-08-05 16:23:53 -04:00

29 lines
526 B
Nix

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;
}