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