diff options
author | Vincent Breitmoser <look@my.amazin.horse> | 2023-05-28 19:10:56 +0200 |
---|---|---|
committer | Vincent Breitmoser <look@my.amazin.horse> | 2023-05-28 23:36:22 +0200 |
commit | db17d622844efaeeb35ffefbaabd205c21b09c59 (patch) | |
tree | 237e286473b72be6cdcbb675d952b8c68295f126 /nixos/modules/services/wayland | |
parent | 9a9adbeca056cd025dd0519e1e4d454e01fda894 (diff) | |
download | nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.tar nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.tar.gz nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.tar.bz2 nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.tar.lz nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.tar.xz nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.tar.zst nixlib-db17d622844efaeeb35ffefbaabd205c21b09c59.zip |
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.
Diffstat (limited to 'nixos/modules/services/wayland')
-rw-r--r-- | nixos/modules/services/wayland/cage.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/wayland/cage.nix b/nixos/modules/services/wayland/cage.nix index 330dce1d0c0f..cf4c0798cd48 100644 --- a/nixos/modules/services/wayland/cage.nix +++ b/nixos/modules/services/wayland/cage.nix @@ -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; |