wildfire: 331 current 2025-06-24 19:26:24 25.05.20250620.b2485d5 6.15.3 *
initial VPN config
This commit is contained in:
@ -4,6 +4,7 @@
|
|||||||
../../modules/common.nix
|
../../modules/common.nix
|
||||||
../../modules/desktops/hyprland-desktop.nix
|
../../modules/desktops/hyprland-desktop.nix
|
||||||
../../modules/programs.nix
|
../../modules/programs.nix
|
||||||
|
./vpn.nix
|
||||||
];
|
];
|
||||||
# Extend home-manager configuration with host-specific monitor settings
|
# Extend home-manager configuration with host-specific monitor settings
|
||||||
home-manager.users.schulze.imports = [
|
home-manager.users.schulze.imports = [
|
||||||
|
19
hosts/hurricane/vpn.nix
Normal file
19
hosts/hurricane/vpn.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
wg-hurricane = {
|
||||||
|
address = ["10.8.0.4/24"];
|
||||||
|
dns = ["192.168.0.128"];
|
||||||
|
privateKeyFile = "/home/schulze/Nextcloud/secrets/wireguard/Felix-Hurricane-pk";
|
||||||
|
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "a35ZSWhBNzPFkf1RCkg4E7cNnUdGGOr4CsA0EM65H0g=";
|
||||||
|
presharedKeyFile = "/home/schulze/Nextcloud/secrets/wireguard/Felix-Hurricane-psk";
|
||||||
|
allowedIPs = ["0.0.0.0/0"];
|
||||||
|
endpoint = "vpn.schulze.network:51820";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -4,6 +4,7 @@
|
|||||||
../../modules/common.nix
|
../../modules/common.nix
|
||||||
../../modules/desktops/hyprland-desktop.nix
|
../../modules/desktops/hyprland-desktop.nix
|
||||||
../../modules/programs.nix
|
../../modules/programs.nix
|
||||||
|
./vpn.nix
|
||||||
];
|
];
|
||||||
# Extend home-manager configuration with host-specific monitor settings
|
# Extend home-manager configuration with host-specific monitor settings
|
||||||
home-manager.users.schulze.imports = [
|
home-manager.users.schulze.imports = [
|
||||||
|
19
hosts/wildfire/vpn.nix
Normal file
19
hosts/wildfire/vpn.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
wg-wildfire = {
|
||||||
|
address = ["10.8.0.5/24"];
|
||||||
|
dns = ["192.168.0.128"];
|
||||||
|
privateKeyFile = "/home/schulze/Nextcloud/secrets/wireguard/Felix-Wildfire-pk";
|
||||||
|
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "a35ZSWhBNzPFkf1RCkg4E7cNnUdGGOr4CsA0EM65H0g=";
|
||||||
|
presharedKeyFile = "/home/schulze/Nextcloud/secrets/wireguard/Felix-Wildfire-psk";
|
||||||
|
allowedIPs = ["0.0.0.0/0"];
|
||||||
|
endpoint = "vpn.schulze.network:51820";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user