about summary refs log tree commit diff stats
path: root/flake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake/nixosConfigurations/common.nix24
1 files changed, 16 insertions, 8 deletions
diff --git a/flake/nixosConfigurations/common.nix b/flake/nixosConfigurations/common.nix
index 2ff85521..68533bd8 100644
--- a/flake/nixosConfigurations/common.nix
+++ b/flake/nixosConfigurations/common.nix
@@ -43,16 +43,24 @@
         foreign.userName = "soispha";
         dataDir = "${config.home-manager.users.soispha.xdg.dataHome}/unison";
         userSourceDir = "/srv/home/soispha";
-        pathsToIgnore = [
-          # already synchronized by the taskserver
-          "~/.local/share/task"
+        pathsToIgnore = let
+          extractTarget = attr: "~/${attr.target}";
+          homeManagerSymlinks =
+            builtins.map extractTarget
+            (builtins.attrValues
+              config.home-manager.users.soispha.home.file);
+        in
+          [
+            # already synchronized by the taskserver
+            "~/.local/share/task"
 
-          # Should not be synchronized
-          "~/.local/share/unison"
+            # Should not be synchronized
+            "~/.local/share/unison"
 
-          # Is just to big to be synchronized (# TODO: Work around that <2024-08-31> )
-          "~/media/music"
-        ];
+            # Is just to big to be synchronized (# TODO: Work around that <2024-08-31> )
+            "~/media/music"
+          ]
+          ++ homeManagerSymlinks;
 
         pathsToSync = [
           "~/.local/state/mpv"