add server1 and change flatpak to make it works if not defined
nix flake show / show-flake (push) Successful in 40s
nix flake show / show-flake (push) Successful in 40s
This commit is contained in:
@@ -1,30 +1,6 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
|
||||
gaming = [
|
||||
"com.heroicgameslauncher.hgl"
|
||||
];
|
||||
|
||||
dev = [
|
||||
"com.google.AndroidStudio"
|
||||
];
|
||||
|
||||
utils = [
|
||||
"com.usebottles.bottles"
|
||||
"com.github.tchx84.Flatseal"
|
||||
"it.mijorus.gearlever"
|
||||
];
|
||||
|
||||
media = [
|
||||
"com.obsproject.Studio"
|
||||
];
|
||||
|
||||
flatpaks =
|
||||
(if config.smayzy.flatpak.gaming.enable then gaming else [ ])
|
||||
++ (if config.smayzy.flatpak.dev.enable then dev else [ ])
|
||||
++ (if config.smayzy.flatpak.utils.enable then utils else [ ])
|
||||
++ (if config.smayzy.flatpak.media.enable then media else [ ]);
|
||||
in
|
||||
{
|
||||
options.smayzy.flatpak = mkOption {
|
||||
@@ -61,13 +37,42 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
default = {};
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.flatpak.enable {
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
update.onActivation = true;
|
||||
packages = flatpaks;
|
||||
};
|
||||
};
|
||||
config = mkIf config.smayzy.flatpak.enable (
|
||||
let
|
||||
gaming = [
|
||||
"com.heroicgameslauncher.hgl"
|
||||
];
|
||||
|
||||
dev = [
|
||||
"com.google.AndroidStudio"
|
||||
];
|
||||
|
||||
utils = [
|
||||
"com.usebottles.bottles"
|
||||
"com.github.tchx84.Flatseal"
|
||||
"it.mijorus.gearlever"
|
||||
];
|
||||
|
||||
media = [
|
||||
"com.obsproject.Studio"
|
||||
];
|
||||
|
||||
flatpaks =
|
||||
(if config.smayzy.flatpak.gaming.enable then gaming else [ ])
|
||||
++ (if config.smayzy.flatpak.dev.enable then dev else [ ])
|
||||
++ (if config.smayzy.flatpak.utils.enable then utils else [ ])
|
||||
++ (if config.smayzy.flatpak.media.enable then media else [ ]);
|
||||
in
|
||||
{
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
update.onActivation = true;
|
||||
packages = flatpaks;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user