Added flatpak options

This commit is contained in:
Jan-Bulthuis committed 2025-04-16 13:06:09 +02:00
1 parent 1300acd7ce
commit c894f00eb0
4 files changed
+63

No files matched your search

+25
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;
};
}
+5
View File
@@ -0,0 +1,5 @@
{
flatpak = {
# services.flatpak.enable = true;
};
}