diff options
| author | adikro <adikro@disroot.org> | 2025-12-24 16:21:00 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-24 16:21:00 +0100 |
| commit | 6aaa5993e4c1cfb205ed555d958702f9bba1770d (patch) | |
| tree | 3af8cf20967cf10542edd2e51232b1da70002fde /os/wm/wm.nix | |
| parent | 2ceabfd1d1dc03ca895e960048b73a82e29e45e8 (diff) | |
a bunch of changes, renames sys to os and refactored some of the logic
Diffstat (limited to 'os/wm/wm.nix')
| -rw-r--r-- | os/wm/wm.nix | 20 |
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 ]; + }; + }; +} |
