This commit is contained in:
Leon Vita 2022-09-25 20:11:03 +01:00
parent b408bcc2bd
commit 5eedfb9d28
1 changed files with 3 additions and 4 deletions

View File

@ -36,7 +36,7 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget vim python3Full nmap htop wireguard-tools docker-compose
wget vim python3Full python310Packages.pip nmap htop wireguard-tools docker-compose
];
users.users.leoncloud = {
@ -63,14 +63,13 @@
#------------------Wireguard-client----------------------------
# Enable WireGuard
networking.wireguard.interfaces = {
wg0 = {
vpn = {
ips = [ "10.10.11.4/24" ];
privateKeyFile = "/etc/nixos/wireguard-keys/private-key";
peers = [
{
publicKey = "w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8=";
allowedIPs = [ "10.10.11.0/24" ];
allowedIPs = [ "10.10.11.0" ];
endpoint = "45.158.40.162:18800";
persistentKeepalive = 25;
}