Prevent hyprpaper.conf dependence on disabled hypr

When hyprland was disabled, we didn't create the hyprpaper configuration
but we still relied on it

This is because

{ x.y = lib.mkIf false "foo"; }

is roughly equivalent to

{ x = {}; }

rather than

{ }

To fix it, we need to do something more like

{ x = lib.mkIf false { y = "foo"; }; }

So let's do that :)

Change-Id: I5422990bc1c7fce17291b26ae5fa3a0ef022b2d7
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/515
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/home/hyprpaper/default.nix b/modules/home/hyprpaper/default.nix
index ca6d709..2f4eabf 100644
--- a/modules/home/hyprpaper/default.nix
+++ b/modules/home/hyprpaper/default.nix
@@ -15,16 +15,18 @@
     };
   };
 
-  config.xdg.configFile."hypr/hyprpaper.conf".source = lib.mkIf config.chimera.hyprland.enable (
-    builtins.toFile "hyprpaper.conf" ''
-      preload = ${config.chimera.theme.wallpaper}
+  config.xdg.configFile = lib.mkIf config.chimera.hyprland.enable {
+    "hypr/hyprpaper.conf".source =  (
+      builtins.toFile "hyprpaper.conf" ''
+        preload = ${config.chimera.theme.wallpaper}
 
-      wallpaper=,${config.chimera.theme.wallpaper}
+        wallpaper=,${config.chimera.theme.wallpaper}
 
-      splash = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.enable}
-      splash_offset = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.offset}
+        splash = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.enable}
+        splash_offset = ${builtins.toString config.chimera.hyprland.hyprpaper.splash.offset}
 
-      ipc = off
-    ''
-  );
+        ipc = off
+      ''
+    );
+  };
 }