From 51790c2bb1a15d51848d3f433d80ccf01b0fbde7 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 21 Jul 2024 10:21:09 +0200 Subject: [PATCH] feat: add pathsToLink option to not link everything --- modules/home.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/home.nix b/modules/home.nix index 5d2e8ce..f389aed 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -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 = [ -- 2.48.1