From d4709448594cd0e2657085f06fdc81da96653e6c Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 13 Oct 2023 01:13:49 +0300 Subject: [PATCH] nixos/x11: create xkb option by default without this ``` nix-repl> nixosTests.xfce.nodes.machine.services.xserver.xkb error: The option 'nodes.machine.services.xserver.xkb' is used but not defined. ``` with this ``` nix-repl> nixosTests.xfce.nodes.machine.services.xserver.xkb { dir = "/nix/store/096yg7fc67py86w0bm6g7a32npgyh5ic-xkeyboard-config-2.39/etc/X11/xkb"; layout = "us"; model = "pc104"; options = "terminate:ctrl_alt_bksp"; variant = ""; } ``` --- nixos/modules/services/x11/xserver.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index b2e348a218e9..a5b624fcfdb2 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -365,6 +365,7 @@ in }; xkb = mkOption { + default = { }; description = "X keyboard extension (XKB) configuration"; type = types.submodule { options = {