~ruther/nix-tmpactivator

51790c2bb1a15d51848d3f433d80ccf01b0fbde7 — Rutherther 8 months ago 8fa85e7
feat: add pathsToLink option to not link everything
1 files changed, 6 insertions(+), 0 deletions(-)

M modules/home.nix
M modules/home.nix => modules/home.nix +6 -0
@@ 46,6 46,11 @@ in {
      path = lib.mkOption {
        type = lib.types.package;
      };

      pathsToLink = lib.mkOption {
        type = lib.types.listOf lib.types.str;
        default = [ "/bin" "/share" ];
      };
    };
  };



@@ 57,6 62,7 @@ in {
    home.path = pkgs.buildEnv {
      name = "tmpactivator-profile";
      paths = config.home.packages;
      pathsToLink = config.home.pathsToLink;
    };

    tmpfiles.instances.home.files = [

Do not follow this link