diff options
Diffstat (limited to 'modules/home/files/manifest_json')
-rw-r--r-- | modules/home/files/manifest_json/default.nix | 16 | ||||
-rw-r--r-- | modules/home/files/manifest_json/profile/manifest.json | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/home/files/manifest_json/default.nix b/modules/home/files/manifest_json/default.nix new file mode 100644 index 00000000..af8d85d2 --- /dev/null +++ b/modules/home/files/manifest_json/default.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: { + home = { + activation = { + addManifestJson = + lib.hm.dag.entryAfter ["writeBoundary"] + '' + [ -L "${config.xdg.stateHome}/nix/profiles/profile" ] && $DRY_RUN_CMD rm $VERBOSE_ARG "${config.xdg.stateHome}/nix/profiles/profile" + $DRY_RUN_CMD ln -s $DRY_RUN_CMD "${./profile}" "${config.xdg.stateHome}/nix/profiles/profile" + ''; + }; + }; +} diff --git a/modules/home/files/manifest_json/profile/manifest.json b/modules/home/files/manifest_json/profile/manifest.json new file mode 100644 index 00000000..bd74d935 --- /dev/null +++ b/modules/home/files/manifest_json/profile/manifest.json @@ -0,0 +1,4 @@ +{ + "elements": [], + "version": 2 +} |