mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 22:43:55 -05:00
25 lines
635 B
Nix
25 lines
635 B
Nix
|
{ pkgs, lib, config, ... }: {
|
||
|
|
||
|
imports = [
|
||
|
./binaryCache
|
||
|
./reverseProxy
|
||
|
./nixContainers
|
||
|
./ociContainers
|
||
|
./samba
|
||
|
./virtualization
|
||
|
];
|
||
|
|
||
|
options = {
|
||
|
homeLab.enable =
|
||
|
lib.mkEnableOption "Enables fully functional HomeLab.";
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
}
|