From 0daf71f97f0dc7ed52e0cdf104ebdfccc736bdcd Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Mon, 24 Aug 2020 19:17:22 -0500 Subject: [PATCH] nixos/cage: supply pamEnvironment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this, you don’t get any of the sessionVariables in the cage application. Things like XDG_DATA_DIRS, XCURSOR_PATH, etc. are missing. --- nixos/modules/services/wayland/cage.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/wayland/cage.nix b/nixos/modules/services/wayland/cage.nix index 50e424fccbfc..14d84c4ce0f9 100644 --- a/nixos/modules/services/wayland/cage.nix +++ b/nixos/modules/services/wayland/cage.nix @@ -82,6 +82,7 @@ in { auth required pam_unix.so nullok account required pam_unix.so session required pam_unix.so + session required pam_env.so conffile=${config.system.build.pamEnvironment} readenv=0 session required ${pkgs.systemd}/lib/security/pam_systemd.so '';