nixos-configs/modules/services/flatpak.nix

21 lines
380 B
Nix
Raw Permalink Normal View History

2023-03-21 14:42:39 +01:00
{ 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 ];
2024-02-09 15:15:20 +01:00
config.common.default = "*";
2023-03-21 14:42:39 +01:00
};
};
}