mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-05 23:26:23 +01:00
25 lines
429 B
Nix
25 lines
429 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.jade.flatpak;
|
|
in
|
|
with lib; {
|
|
options.jade.flatpak = {
|
|
enable = mkEnableOption "Enable flatpak";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.flatpak.enable = true;
|
|
xdg.portal = {
|
|
enable = true;
|
|
# TODO
|
|
config.common.default = "*";
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-gtk
|
|
];
|
|
};
|
|
};
|
|
}
|