diff options
Diffstat (limited to 'modules/home.legacy/files/manifest_json/default.nix')
-rw-r--r-- | modules/home.legacy/files/manifest_json/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/home.legacy/files/manifest_json/default.nix b/modules/home.legacy/files/manifest_json/default.nix new file mode 100644 index 00000000..af8d85d2 --- /dev/null +++ b/modules/home.legacy/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" + ''; + }; + }; +} |