summaryrefslogtreecommitdiff
path: root/os/wm/wm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/wm/wm.nix')
-rw-r--r--os/wm/wm.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/os/wm/wm.nix b/os/wm/wm.nix
new file mode 100644
index 0000000..5374264
--- /dev/null
+++ b/os/wm/wm.nix
@@ -0,0 +1,20 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.sys.wm;
+in
+{
+ imports = [
+ ./niri.nix
+ ];
+
+ options.sys.wm.enable = lib.mkEnableOption "enables shared wm features";
+ config = lib.mkIf cfg.enable {
+ services.dbus.enable = true;
+
+ xdg.portal = {
+ enable = true;
+ xdgOpenUsePortal = true;
+ extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
+ };
+ };
+}