IDK nothing works

This commit is contained in:
jacekpoz 2023-07-20 17:03:27 +02:00
parent 77f90cb797
commit 6b94eb3280
3 changed files with 16 additions and 7 deletions

View file

@ -4,6 +4,6 @@ _: {
./hardware-configuration.nix ./hardware-configuration.nix
./mullvad ./mullvad
./ssh ./ssh
./wireguard #./wireguard
]; ];
} }

View file

@ -6,11 +6,10 @@
environment.systemPackages = with pkgs; [ mullvad-vpn mullvad ]; environment.systemPackages = with pkgs; [ mullvad-vpn mullvad ];
networking.wireguard.enable = true; networking.wireguard.enable = true;
networking.iproute2.enable = true;
services.mullvad-vpn = { services.mullvad-vpn = {
enable = true; enable = true;
package = pkgs.mullvad-vpn;
enableExcludeWrapper = false;
}; };
systemd.services."mullvad-daemon".postStart = let systemd.services."mullvad-daemon".postStart = let

View file

@ -8,10 +8,10 @@
allowedUDPPorts = [ 51820 ]; allowedUDPPorts = [ 51820 ];
checkReversePath = "loose"; checkReversePath = "loose";
}; };
wireguard = { wg-quick = {
interfaces = { interfaces = {
ch0 = { ch0 = {
ips = [ "10.100.0.2/24" ]; address = [ "10.100.0.2/24" ];
listenPort = 51820; listenPort = 51820;
privateKeyFile = "/home/jacek/.wg/chmura"; privateKeyFile = "/home/jacek/.wg/chmura";
@ -20,8 +20,18 @@
publicKey = "cq4ZqnPM7wVGkoiquDbQLNuqEiPuHa/CLiGFow6buUI="; publicKey = "cq4ZqnPM7wVGkoiquDbQLNuqEiPuHa/CLiGFow6buUI=";
allowedIPs = [ "0.0.0.0/0" ]; allowedIPs = [ "0.0.0.0/0" ];
endpoint = "hcq082e0b05.sn.mynetname.net:51820"; endpoint = "hcq082e0b05.sn.mynetname.net:51820";
dynamicEndpointRefreshSeconds = 5; }
persistentKeepalive = 25; ];
};
mv0 = {
address = [ "10.64.197.114/32" "fc00:bbbb:bbbb:bb01::1:c571/128" ];
dns = [ "100.64.0.7" ];
privateKeyFile = "/home/jacek/.wg/mullvad";
peers = [
{
publicKey = "94qIvXgF0OXZ4IcquoS7AO57OV6JswUFgdONgGiq+jo=";
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
endpoint = "185.65.135.69:51820";
} }
]; ];
}; };