From 1211023c55a42c9503dcf752b07cf89336515e63 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 15 May 2024 23:58:10 +0000 Subject: [PATCH] modules/programs: remove dead code from per-user profiles --- modules/programs/default.nix | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/modules/programs/default.nix b/modules/programs/default.nix index cbbde8cf..df57aa8d 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -2,8 +2,6 @@ let saneCfg = config.sane; cfg = config.sane.programs; - fs-lib = sane-lib.fs; - path-lib = sane-lib.path; # create a map: # { @@ -64,23 +62,6 @@ let ++ sandbox.extraPaths ; - additionalPathsForUser = user: let - fullHomePaths = builtins.map - (p: path-lib.concat [ user.home p ]) - allowedHomePaths - ; - fullRunPaths = builtins.map - (p: path-lib.concat [ "/run/user/${builtins.toString user.uid}" p ]) - allowedRunPaths - ; - in - fullHomePaths ++ fullRunPaths; - # expand user-specific paths for all users. - # this feeds into the symlink cache, so that cached link data can be available no matter which user invokes the program. - userPathsClosure = lib.flatten ( - builtins.map additionalPathsForUser (builtins.attrValues config.users.users) - ); - sandboxArgs = makeSandboxArgs { inherit (sandbox) autodetectCliPaths