Added flatpak options
This commit is contained in:
parent
1300acd7ce
commit
c894f00eb0
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
flatpak = {
|
||||||
|
# services.flatpak.enable = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue