diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-27 16:39:14 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-27 16:39:14 -0400 |
commit | 2e4c4298cf84f94d68387e8076fd430e9968ce6c (patch) | |
tree | 2a43fa6d4659fe2585c75aeec3ee4d5e0a42de2e /modules/desktops/wayland.nix | |
parent | fmt (diff) | |
download | dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.gz dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.bz2 dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.zip |
refactor
Diffstat (limited to '')
-rw-r--r-- | modules/desktops/wayland.nix | 21 |
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; + }; +} |