diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
| commit | c1d9af57156f3c95590d9a12c394ee064df9696e (patch) | |
| tree | 7e515761590c510c30329ef8548c7d84a8e95aaa /sys/wm/wm.nix | |
| parent | 791bc419b6dac7c70951981ef6b34cdf85828470 (diff) | |
added disko config for laptop, added storage and memory modules
Diffstat (limited to 'sys/wm/wm.nix')
| -rw-r--r-- | sys/wm/wm.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/wm/wm.nix b/sys/wm/wm.nix index 48df857..10780e0 100644 --- a/sys/wm/wm.nix +++ b/sys/wm/wm.nix @@ -1,6 +1,23 @@ -{ ... }: +{ 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 || cfg.niri.enable or false) { + services.dbus.enable = true; + + xdg.portal = { + enable = true; + wlr.enable = true; + xdgOpenUsePortal = true; + extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + config.common.default = [ "gtk" ]; + }; + }; } |
