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