about summary refs log tree commit diff stats
path: root/hm/soispha/files
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-13 11:38:29 +0100
committerSoispha <soispha@vhack.eu>2024-01-13 11:38:29 +0100
commit12e3c1ad669c7b06bca3ce698798592f3f2567b6 (patch)
treea590ea17f9843e2b3163392fc05b5d30c028eeca /hm/soispha/files
parentbuild(treewide): Update flake and shell library (diff)
downloadnixos-config-12e3c1ad669c7b06bca3ce698798592f3f2567b6.zip
fix(hm): Move the session variables to their associated service
Diffstat (limited to '')
-rw-r--r--hm/soispha/files/wallpaper/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/hm/soispha/files/wallpaper/default.nix b/hm/soispha/files/wallpaper/default.nix
index 2c9b3368..119df225 100644
--- a/hm/soispha/files/wallpaper/default.nix
+++ b/hm/soispha/files/wallpaper/default.nix
@@ -1,8 +1,14 @@
 {config, ...}: {
-  home.file = {
-    wallpaper = {
-      source = ./abstract-nord.png;
-      target = "media/pictures/wallpaper";
+  home = {
+    sessionVariables = {
+      WALLPAPER = "${config.home.homeDirectory}/media/pictures/wallpaper";
+    };
+
+    file = {
+      wallpaper = {
+        source = ./abstract-nord.png;
+        target = "media/pictures/wallpaper";
+      };
     };
   };
 }