update
This commit is contained in:
parent
b408bcc2bd
commit
5eedfb9d28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue