Add flatpak

This commit is contained in:
muon 2026-01-17 11:01:49 +00:00
parent ce74d1b0eb
commit 5770fcf23d
6 changed files with 69 additions and 0 deletions

View file

@ -11,6 +11,7 @@
./server
./sops
./security
./flatpak
./impermanence.nix

View file

@ -0,0 +1,26 @@
{
pkgs,
config,
inputs,
lib,
...
}: let
cfg = config.mods.flatpak;
in
with lib; {
options.mods.flatpak.enable =
mkEnableOption "enables flatpak programs";
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
./stremio.nix
];
config = mkIf cfg.enable {
services.flatpak.enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal
];
};
}

View file

@ -0,0 +1,20 @@
{
config,
lib,
...
}: let
cfg = config.mods.flatpak.stremio;
in
with lib; {
options.mods.flatpak.stremio.enable =
mkEnableOption "enables stremio flatpak";
config = mkIf cfg.enable {
services.flatpak.packages = [
{
appId = "com.stremio.Stremio";
origin = "flathub";
}
];
};
}