From 084e1401f8219e25b43fb439ce77b6657f4aa16c Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 14 Jan 2024 11:26:01 +0100 Subject: fix(hm/files): Add manifest.json symlink --- hm/soispha/files/manifest_json/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'hm/soispha/files/manifest_json/default.nix') 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/"''; }; }; } -- cgit 1.4.1