Added flatpak options

This commit is contained in:
Jan-Bulthuis 2025-04-16 13:06:09 +02:00
parent 1300acd7ce
commit c894f00eb0
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{
lib,
config,
...
}:
with lib;
{
options.modules.flatpak = {
enable = mkEnableOption "flatpak";
remotes = mkOption {
type = types.attrsOf types.str;
default = {
flathub = "https://dl.flathub.org/repo/flathub.flatpakrepo";
flathub-beta = "https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo";
};
description = "A set of flatpak repositories to add.";
};
};
config = mkIf config.modules.flatpak.enable {
services.flatpak.enableModule = true;
services.flatpak.remotes = config.modules.flatpak.remotes;
};
}

View File

@ -0,0 +1,5 @@
{
flatpak = {
# services.flatpak.enable = true;
};
}

View File

@ -0,0 +1,16 @@
{ lib, config, ... }:
with lib;
{
imports = [
./eloquent.nix
];
options.modules.languagetool = {
enable = mkEnableOption "languagetool";
};
config = mkIf config.modules.languagetool.enable {
modules.eloquent.enable = mkDefault true;
};
}

View File

@ -0,0 +1,17 @@
{ lib, config, ... }:
with lib;
{
options.modules.eloquent = {
enable = mkEnableOption "eloquent";
};
config = mkIf config.modules.eloquent.enable {
modules.flatpak.enable = true;
services.flatpak.packages = [
"flathub:app/re.sonny.Eloquent//stable"
"flathub:app/org.kde.kdenlive//stable"
];
};
}