Merge pull request #234652 from Valodim/cage-extra-environment

nixos/cage: add environment config
This commit is contained in:
Pol Dellaiera 2023-07-28 18:57:19 +02:00 committed by GitHub
commit 1e37e277ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,15 @@ in {
example = ["-d"];
};
options.services.cage.environment = mkOption {
type = types.attrsOf types.str;
default = {};
example = {
WLR_LIBINPUT_NO_DEVICES = "1";
};
description = lib.mdDoc "Additional environment variables to pass to Cage.";
};
options.services.cage.program = mkOption {
type = types.path;
default = "${pkgs.xterm}/bin/xterm";
@ -79,6 +88,7 @@ in {
# Set up a full (custom) user session for the user, required by Cage.
PAMName = "cage";
};
environment = cfg.environment;
};
security.polkit.enable = true;