mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
30 lines
587 B
Nix
30 lines
587 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.flatpak.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.flatpak.enable {
|
|
services.flatpak.enable = true;
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
config.common.default = "*";
|
|
};
|
|
|
|
home-manager.sharedModules = [
|
|
{
|
|
xdg = {
|
|
enable = true;
|
|
systemDirs.data = [
|
|
"/var/lib/flatpak/exports/share"
|
|
"/home/seb/.local/share/flatpak/exports/share"
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|