nixos-configs/nixosModules/desktop/theme/hyprpaper.nix
matt1432 838df34dfb
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename legacyPackages to scopedPackages
2024-11-20 15:17:55 -05:00

30 lines
586 B
Nix

self: {
lib,
pkgs,
...
}: {
config = let
hyprpaper = self.inputs.hyprpaper.packages.${pkgs.system}.default;
wallpaper = toString self.scopedPackages.${pkgs.system}.dracula.wallpaper;
in {
home.packages = [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;
}