diff --git a/hosts/fant0mib0t/default.nix b/hosts/fant0mib0t/default.nix index f961ce3..98af932 100644 --- a/hosts/fant0mib0t/default.nix +++ b/hosts/fant0mib0t/default.nix @@ -7,7 +7,10 @@ imports = [ ./hardware-configuration.nix ../server.nix - ]; + ] + ++ builtins.map (i: ../../modules/${i}) ([ + "radius" + ]); # Bootloader boot = { diff --git a/modules/network.nix b/modules/network.nix index cf72e45..3ae9385 100644 --- a/modules/network.nix +++ b/modules/network.nix @@ -3,6 +3,7 @@ environment.systemPackages = with pkgs; [ # network :3 arp-scan + freeradius nmap openvpn proton-vpn diff --git a/modules/radius/config/.gitignore b/modules/radius/config/.gitignore new file mode 100644 index 0000000..5347237 --- /dev/null +++ b/modules/radius/config/.gitignore @@ -0,0 +1 @@ +users \ No newline at end of file diff --git a/modules/radius/config/clients.conf b/modules/radius/config/clients.conf new file mode 100644 index 0000000..2a53e51 --- /dev/null +++ b/modules/radius/config/clients.conf @@ -0,0 +1,4 @@ +client switch { + ipaddr = 172.16.20.2 + secret = fantom-lab +} \ No newline at end of file diff --git a/modules/radius/default.nix b/modules/radius/default.nix new file mode 100644 index 0000000..66ad719 --- /dev/null +++ b/modules/radius/default.nix @@ -0,0 +1,7 @@ +{ dotfileFolder, ... }: +{ + services.freeradius = { + enable = true; + configDir = "${dotfileFolder}/modules/freeradius/config"; + }; +}