chore: move xdg-portals to graphical config

This commit is contained in:
Patrick Großmann 2023-12-03 15:19:53 +01:00
parent e2bce75b81
commit dd60b94a59
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 15 additions and 16 deletions

View file

@ -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

View file

@ -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 = {