summaryrefslogtreecommitdiff
path: root/modules/nixos/wayland.nix
blob: 5068c2573086bea24517ea94121b9fef187fb898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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!";
      }
    ];
  };
}