aboutsummaryrefslogtreecommitdiff
path: root/hosts/station/network.nix
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-08-31 14:21:34 +0000
committeraethrvmn <me@aethrvmn.gr>2025-08-31 14:21:34 +0000
commitbfd970a07c231b5781871c16cb4612eb4c6b8fd4 (patch)
tree50a4ac5138d1f438e4d5bad3a3dd880a0784cd3e /hosts/station/network.nix
parentadded flake (diff)
imported system/home-manager config
Diffstat (limited to '')
-rw-r--r--hosts/station/network.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/hosts/station/network.nix b/hosts/station/network.nix
new file mode 100644
index 0000000..c1b08ea
--- /dev/null
+++ b/hosts/station/network.nix
@@ -0,0 +1,55 @@
+{ config, pkgs, ... }:
+
+{
+ networking = {
+ hostName = "station"; # Define your hostname.
+
+ # Enables wireless support via wpa_supplicant.
+ # wireless.enable = true;
+
+ # Configure network proxy if necessary
+ # proxy.default = "http://user:password@proxy:port/";
+ # proxy.noProxy = "127.0.0.1,localhost,internal.domain";
+
+ # Enable networking
+ networkmanager.enable = true;
+
+ wireguard = {
+ enable = true;
+
+ interfaces = {
+ rousi = {
+ ips = [
+ "10.0.0.5/24"
+ ];
+ listenPort = 51820;
+ privateKeyFile = "/home/aethrvmn/.creds/rousikey";
+
+ peers = [
+ {
+ allowedIPs = [
+ "192.168.10.0/24"
+ "172.16.0.0/24"
+ ];
+ publicKey = "LEeO3Qy6c3W0qoR1xFhl7Fx29Oppq8tKE72HPoA831I=";
+ endpoint = "vpn.valatsos.gr:51820";
+ persistentKeepalive = 25;
+ }
+ ];
+ };
+ };
+ };
+
+ # Open ports in the firewall.
+ firewall ={
+ ## 1313 is HUGO
+ ## 2234 is nicotine
+ allowedTCPPorts = [ 1313 2234 ];
+ ## 51820 is wg
+ ## 53317 is localsend
+ allowedUDPPorts = [ 51820 53317 ];
+ };
+ # Or disable the firewall altogether.
+ # firewall.enable = false;
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.