From 12e3c1ad669c7b06bca3ce698798592f3f2567b6 Mon Sep 17 00:00:00 2001
From: Soispha <soispha@vhack.eu>
Date: Sat, 13 Jan 2024 11:38:29 +0100
Subject: fix(hm): Move the session variables to their associated service

---
 hm/soispha/files/wallpaper/default.nix | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'hm/soispha/files/wallpaper/default.nix')

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";
+      };
     };
   };
 }
-- 
cgit 1.4.1