···23 example = ["-d"];
24 };
2500000000026 options.services.cage.program = mkOption {
27 type = types.path;
28 default = "${pkgs.xterm}/bin/xterm";
···79 # Set up a full (custom) user session for the user, required by Cage.
80 PAMName = "cage";
81 };
082 };
8384 security.polkit.enable = true;
···23 example = ["-d"];
24 };
2526+ options.services.cage.environment = mkOption {
27+ type = types.attrsOf types.str;
28+ default = {};
29+ example = {
30+ WLR_LIBINPUT_NO_DEVICES = "1";
31+ };
32+ description = lib.mdDoc "Additional environment variables to pass to Cage.";
33+ };
34+35 options.services.cage.program = mkOption {
36 type = types.path;
37 default = "${pkgs.xterm}/bin/xterm";
···88 # Set up a full (custom) user session for the user, required by Cage.
89 PAMName = "cage";
90 };
91+ environment = cfg.environment;
92 };
9394 security.polkit.enable = true;