summaryrefslogtreecommitdiff
path: root/modules/desktops/wayland.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-27 16:39:14 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-27 16:39:14 -0400
commit2e4c4298cf84f94d68387e8076fd430e9968ce6c (patch)
tree2a43fa6d4659fe2585c75aeec3ee4d5e0a42de2e /modules/desktops/wayland.nix
parentfmt (diff)
downloaddotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.gz
dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.bz2
dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.zip
refactor
Diffstat (limited to '')
-rw-r--r--modules/desktops/wayland.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/desktops/wayland.nix b/modules/desktops/wayland.nix
new file mode 100644
index 0000000..ceef20a
--- /dev/null
+++ b/modules/desktops/wayland.nix
@@ -0,0 +1,21 @@
+{
+ lib,
+ config,
+ pkgs,
+ ...
+}: let
+ inherit (lib) mkIf;
+ cfg = config.desktops;
+in {
+ config = mkIf cfg.wayland {
+ xdg.portal = {
+ enable = true;
+ wlr.enable = true;
+ extraPortals = [
+ pkgs.xdg-desktop-portal-wlr
+ ];
+ };
+
+ programs.xwayland.enable = true;
+ };
+}