about summary refs log tree commit diff stats
path: root/modules/home/files/manifest_json/default.nix
blob: af8d85d294925fb4cfab3301b2aa78e14b330db2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"
        '';
    };
  };
}