Personal Nix setup
at main 452 B view raw
1{ lib, helpers, ... }: 2 3with lib; { 4 options.modules.automation = { 5 enable = mkOption { 6 default = false; 7 example = true; 8 description = "Whether to enable Home Automation options."; 9 type = types.bool; 10 }; 11 }; 12 13 config.modules.automation = { 14 enable = if helpers.isLinux then (mkDefault false) else (mkForce false); 15 }; 16} // helpers.linuxAttrs { 17 imports = [ 18 ./mqtt.nix 19 ./zigbee.nix 20 ./homebridge 21 ]; 22}