diff --git a/modules/config/system.nix b/modules/config/system.nix index 8d7d596..23b4931 100644 --- a/modules/config/system.nix +++ b/modules/config/system.nix @@ -26,22 +26,6 @@ enable = true; pkcs11.enable = true; }; - xdg.portal = { - enable = true; - xdgOpenUsePortal = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-wlr - xdg-desktop-portal-gtk - ]; - config = { - common.default = [ - "gtk" - ]; - sway.default = [ - "wlr" - ]; - }; - }; # Just before switching, remove the agenix directory if it exists. # This can happen when a secret is used in the initrd because it will # then be copied to the initramfs under the same path. This materializes diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 5304aa4..80f805e 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -23,6 +23,21 @@ in { ]; config = { + xdg.portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-wlr + xdg-desktop-portal-gtk + ]; + config = { + common.default = [ + "gtk" + ]; + sway.default = [ + "wlr" + ]; + }; + }; # needed for gnome pinentry services.dbus.packages = [pkgs.gcr]; stylix = {