23 lines
430 B
Nix
Raw Normal View History

2024-10-20 00:30:58 +02:00
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.extraServices.flatpak;
in {
options.extraServices.flatpak.enable = mkEnableOption "enable podman";
config = mkIf cfg.enable {
services.flatpak.enable = true;
xdg.portal = {
# xdg desktop intergration (required for flatpak)
enable = true;
2025-01-25 13:16:10 +01:00
2024-10-20 00:30:58 +02:00
extraPortals = [pkgs.xdg-desktop-portal-gtk];
2024-11-16 19:58:59 +01:00
config.common.default = "*";
2024-10-20 00:30:58 +02:00
};
};
}