about summary refs log tree commit diff
path: root/modules/nixos/x11.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-12-03 02:52:28 +0300
committerAzat Bahawi <azat@bahawi.net>2023-12-03 02:52:28 +0300
commitcec9f7acd5e5e365563212c5144394f71dd90b27 (patch)
tree667b308a7241ab2e8f3fa4e2b53cc7888e876c68 /modules/nixos/x11.nix
parent2023-11-29 (diff)
2023-12-03
Diffstat (limited to 'modules/nixos/x11.nix')
-rw-r--r--modules/nixos/x11.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/nixos/x11.nix b/modules/nixos/x11.nix
index b1bca8f..b629aeb 100644
--- a/modules/nixos/x11.nix
+++ b/modules/nixos/x11.nix
@@ -10,7 +10,12 @@ in {
   options.nixfiles.modules.x11.enable = mkEnableOption "X11";
 
   config = mkIf cfg.enable {
-    nixfiles.modules.fonts.enable = true;
+    assertions = [
+      {
+        assertion = !config.nixfiles.modules.wayland.enable;
+        message = "Pick only one!";
+      }
+    ];
 
     hm = {
       home.sessionVariables = {

Consider giving Nix/NixOS a try! <3