diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-08-16 23:47:17 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-08-17 22:08:07 -0600 |
| commit | 064bd98a00f75f314a9ad09ef2f515f063674800 (patch) | |
| tree | 8acece9329ded2f61811533302548f42423ffee9 /sys/seat | |
| parent | 6cb743cb070be40901dd472a7b9528864735237d (diff) | |
home/desktop, sys/seat: switch from xorg/i3 to wayland/sway
Diffstat (limited to '')
| -rw-r--r-- | sys/seat/default.nix | 20 |
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; |
