about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-14 11:26:01 +0100
committerSoispha <soispha@vhack.eu>2024-01-14 11:54:16 +0100
commit084e1401f8219e25b43fb439ce77b6657f4aa16c (patch)
treee282605b5455f3b1d09d9cd403e30433ddfcd732 /hm
parentfix(hm/files): Generate manifest.json to help home-manager (diff)
downloadnixos-config-084e1401f8219e25b43fb439ce77b6657f4aa16c.tar.gz
nixos-config-084e1401f8219e25b43fb439ce77b6657f4aa16c.zip
fix(hm/files): Add manifest.json symlink
Diffstat (limited to 'hm')
-rw-r--r--hm/soispha/files/manifest_json/default.nix15
-rw-r--r--hm/soispha/files/manifest_json/profile/manifest.json4
2 files changed, 13 insertions, 6 deletions
diff --git a/hm/soispha/files/manifest_json/default.nix b/hm/soispha/files/manifest_json/default.nix
index 09dda877..abc2e065 100644
--- a/hm/soispha/files/manifest_json/default.nix
+++ b/hm/soispha/files/manifest_json/default.nix
@@ -1,10 +1,13 @@
-{config, ...}: {
+{
+  config,
+  lib,
+  ...
+}: {
   home = {
-    file = {
-      manifest_json = {
-        text = "";
-        target = "${config.xdg.stateHome}/nix/profile/manifest.json";
-      };
+    activation = {
+      addManifestJson =
+        lib.hm.dag.entryAfter ["writeBoundary"]
+        ''$DRY_RUN_CMD ln -s $VERBOSE_ARG "${./profile}" "${config.xdg.stateHome}/nix/profiles/"'';
     };
   };
 }
diff --git a/hm/soispha/files/manifest_json/profile/manifest.json b/hm/soispha/files/manifest_json/profile/manifest.json
new file mode 100644
index 00000000..bd74d935
--- /dev/null
+++ b/hm/soispha/files/manifest_json/profile/manifest.json
@@ -0,0 +1,4 @@
+{
+    "elements": [],
+    "version": 2
+}