summaryrefslogtreecommitdiff
path: root/sys/seat/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/seat/default.nix')
-rw-r--r--sys/seat/default.nix20
1 files changed, 18 insertions, 2 deletions
diff --git a/sys/seat/default.nix b/sys/seat/default.nix
index f391058..71041c0 100644
--- a/sys/seat/default.nix
+++ b/sys/seat/default.nix
@@ -17,6 +17,11 @@ in
default = false;
};
+ wayland = mkOption {
+ type = types.bool;
+ default = true;
+ };
+
videoDrivers = mkOption {
type = with types; listOf str;
};
@@ -79,16 +84,27 @@ in
)
(mkIf cfg.graphical {
+ environment = {
+ sessionVariables.NIXOS_OZONE_WL = "1";
+
+ systemPackages = with pkgs; [
+ qt5.qtwayland
+ qt6.qtwayland
+ ];
+ };
+
+ hardware.opengl.enable = true;
+
programs.dconf.enable = true;
services = {
libinput.enable = true;
- udev.packages = [
+ udev.packages = with pkgs; [
pkgs.android-udev-rules
];
- xserver = {
+ xserver = mkIf (!cfg.wayland) {
enable = true;
videoDrivers = cfg.videoDrivers ++ [ "modesetting" "fbdev" ];
displayManager.startx.enable = true;