2024-08-02 22:32:29 -04:00
|
|
|
self: {
|
|
|
|
lib,
|
2025-01-04 19:02:30 -05:00
|
|
|
osConfig,
|
2024-08-02 22:32:29 -04:00
|
|
|
pkgs,
|
|
|
|
...
|
2025-01-04 19:02:30 -05:00
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
|
|
|
|
cfg = osConfig.roles.desktop;
|
|
|
|
|
|
|
|
hyprpaper = self.inputs.hyprpaper.packages.${pkgs.system}.default;
|
|
|
|
wallpaper = toString self.scopedPackages.${pkgs.system}.dracula.wallpaper;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
2024-09-02 15:09:39 -04:00
|
|
|
home.packages = [hyprpaper];
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
xdg.configFile."hypr/hyprpaper.conf" = {
|
|
|
|
text = lib.hm.generators.toHyprconf {
|
|
|
|
attrs = {
|
|
|
|
ipc = "on";
|
|
|
|
splash = false;
|
|
|
|
|
|
|
|
preload = [wallpaper];
|
|
|
|
|
|
|
|
wallpaper = [
|
|
|
|
",${wallpaper}"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
2025-01-04 19:02:30 -05:00
|
|
|
_file = ./default.nix;
|
2024-08-02 22:32:29 -04:00
|
|
|
}
|