about summary refs log tree commit diff
path: root/modules/nixos/x11.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/x11.nix21
1 files changed, 9 insertions, 12 deletions
diff --git a/modules/nixos/x11.nix b/modules/nixos/x11.nix
index bd35d87..52420db 100644
--- a/modules/nixos/x11.nix
+++ b/modules/nixos/x11.nix
@@ -10,19 +10,16 @@ in {
   options.nixfiles.modules.x11.enable = mkEnableOption "X11";
 
   config = mkIf cfg.enable {
-    assertions = [
-      {
-        assertion = !config.nixfiles.modules.wayland.enable;
-        message = "Pick only one!";
-      }
-    ];
-
     hm = {
-      home.sessionVariables = {
-        XCOMPOSEFILE = pkgs.writeText "XCompose" ''
-          include "${pkgs.xorg.libX11}/share/X11/locale/en_US.UTF-8/Compose"
-        '';
-        XCOMPOSECACHE = "${config.dirs.cache}/libx11/compose";
+      home = {
+        sessionVariables = {
+          XCOMPOSEFILE = pkgs.writeText "XCompose" ''
+            include "${pkgs.xorg.libX11}/share/X11/locale/en_US.UTF-8/Compose"
+          '';
+          XCOMPOSECACHE = "${config.dirs.cache}/libx11/compose";
+        };
+
+        packages = with pkgs; [xclip];
       };
 
       xresources.properties = {

Consider giving Nix/NixOS a try! <3