mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Add flatpak
This commit is contained in:
parent
ce74d1b0eb
commit
5770fcf23d
6 changed files with 69 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
./server
|
||||
./sops
|
||||
./security
|
||||
./flatpak
|
||||
|
||||
./impermanence.nix
|
||||
|
||||
|
|
|
|||
26
modules/nixos/flatpak/default.nix
Normal file
26
modules/nixos/flatpak/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
20
modules/nixos/flatpak/stremio.nix
Normal file
20
modules/nixos/flatpak/stremio.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue