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.

Changed files
+10
nixos
modules
services
wayland
+10
nixos/modules/services/wayland/cage.nix
···
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";
···
# Set up a full (custom) user session for the user, required by Cage.
PAMName = "cage";
};
+
environment = cfg.environment;
};
security.polkit.enable = true;