nix/module/common/Apks.nix

18 lines
460 B
Nix
Raw Normal View History

2024-06-09 23:35:53 +03:00
# I want to pull all the Apk files in their current state
# so that I always have an access to clients that match
# my service versions.
2024-06-25 04:04:39 +03:00
{ pkgs, lib, config, ... } @args: with lib; let
cfg = config.module.common.apks;
2024-06-09 23:35:53 +03:00
package = (pkgs.callPackage ./apks args);
in {
2024-06-25 04:04:39 +03:00
options = {
module.common.apks = {
enable = mkEnableOption "Android Apps Apk" // { default = true; };
};
};
config = mkIf cfg.enable {
environment.etc.apks.source = package;
};
2024-06-09 23:35:53 +03:00
}