2024-03-28 16:13:46 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./binaryCache
|
|
|
|
./reverseProxy
|
|
|
|
./nixContainers
|
|
|
|
./ociContainers
|
|
|
|
./samba
|
|
|
|
./virtualization
|
|
|
|
];
|
|
|
|
|
|
|
|
options = {
|
2024-03-28 16:40:23 -04:00
|
|
|
homeLab.enable = lib.mkEnableOption "Enables fully functional HomeLab.";
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.homeLab.enable {
|
|
|
|
homeLab.binaryCache.enable = lib.mkDefault true;
|
|
|
|
homeLab.nixContainers.enable = lib.mkDefault true;
|
|
|
|
homeLab.ociContainers.enable = lib.mkDefault true;
|
|
|
|
homeLab.reverseProxy.enable = lib.mkDefault true;
|
|
|
|
homeLab.samba.enable = lib.mkDefault true;
|
|
|
|
homeLab.virtualization.enable = lib.mkDefault true;
|
|
|
|
};
|
2024-03-28 16:40:23 -04:00
|
|
|
}
|