Added flatpak options
This commit is contained in:
parent
1300acd7ce
commit
c894f00eb0
25
user-modules/flatpak/default.nix
Normal file
25
user-modules/flatpak/default.nix
Normal 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
user-modules/flatpak/systemwide.nix
Normal file
5
user-modules/flatpak/systemwide.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
flatpak = {
|
||||
# services.flatpak.enable = true;
|
||||
};
|
||||
}
|
16
user-modules/languagetool/default.nix
Normal file
16
user-modules/languagetool/default.nix
Normal 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;
|
||||
};
|
||||
}
|
17
user-modules/languagetool/eloquent.nix
Normal file
17
user-modules/languagetool/eloquent.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user