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 +++++++++------ hm/soispha/files/manifest_json/profile/manifest.json | 4 ++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 hm/soispha/files/manifest_json/profile/manifest.json (limited to 'hm/soispha/files/manifest_json') 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 +} -- cgit 1.4.1