mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 19:31:54 -05:00
18 lines
535 B
Nix
18 lines
535 B
Nix
{ pkgs, lib, config, ... }: {
|
|
|
|
imports =
|
|
[ ./binaryCache ./reverseProxy ./nixContainers ./ociContainers ./samba ];
|
|
|
|
options = {
|
|
homeLab.enable = lib.mkEnableOption "Enables fully functional Home Lab.";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|