nixos-configs/modules/services/flatpak.nix
Paul-Henri Froidmont eea9e47197
Update NixOS to 23.11
2024-02-09 15:15:20 +01:00

20 lines
380 B
Nix

{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.services.flatpak;
in {
options.modules.services.flatpak = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = "*";
};
};
}