30 lines
586 B
Nix
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;
|
|
}
|