From cec9f7acd5e5e365563212c5144394f71dd90b27 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 3 Dec 2023 02:52:28 +0300 Subject: 2023-12-03 --- modules/nixos/wayland.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/nixos/wayland.nix (limited to 'modules/nixos/wayland.nix') diff --git a/modules/nixos/wayland.nix b/modules/nixos/wayland.nix new file mode 100644 index 0000000..5068c25 --- /dev/null +++ b/modules/nixos/wayland.nix @@ -0,0 +1,19 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.nixfiles.modules.wayland; +in { + options.nixfiles.modules.wayland.enable = mkEnableOption "Wayland"; + + config = mkIf cfg.enable { + assertions = [ + { + assertion = !config.nixfiles.modules.x11.enable; + message = "Pick only one!"; + } + ]; + }; +} -- cgit 1.4.1