nixos-configs/modules/services/flatpak.nix

27 lines
383 B
Nix
Raw Normal View History

2024-08-20 22:58:24 +02:00
{
config,
lib,
pkgs,
...
}:
2023-03-21 14:42:39 +01:00
2024-08-20 22:58:24 +02:00
let
cfg = config.modules.services.flatpak;
in
{
options.modules.services.flatpak = {
enable = lib.my.mkBoolOpt false;
};
2023-03-21 14:42:39 +01:00
2024-08-20 22:58:24 +02:00
config = lib.mkIf cfg.enable {
2023-03-21 14:42:39 +01:00
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
2024-02-09 15:15:20 +01:00
config.common.default = "*";
2023-03-21 14:42:39 +01:00
};
};
}