Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/cage: add environment config

Give WLR_LIBINPUT_NO_DEVICES as example. This allows launching without
any input devices, which makes sense for a kiosk system.

+10
+10
nixos/modules/services/wayland/cage.nix
··· 23 23 example = ["-d"]; 24 24 }; 25 25 26 + 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 + 26 35 options.services.cage.program = mkOption { 27 36 type = types.path; 28 37 default = "${pkgs.xterm}/bin/xterm"; ··· 79 88 # Set up a full (custom) user session for the user, required by Cage. 80 89 PAMName = "cage"; 81 90 }; 91 + environment = cfg.environment; 82 92 }; 83 93 84 94 security.polkit.enable = true;