mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
finish setup for wireguard clients
This commit is contained in:
parent
4d2a2204ca
commit
4aaec6d0a9
11
home/private_dot_wireguard/adjudicator.conf.tmpl
Normal file
11
home/private_dot_wireguard/adjudicator.conf.tmpl
Normal file
@ -0,0 +1,11 @@
|
||||
[Interface]
|
||||
# your own IP on the wireguard network
|
||||
Address = 192.168.2.2/24
|
||||
PrivateKey = {{ (secret "Wireguard - Adjudicator Secret" "NOTES") }}
|
||||
|
||||
[Peer]
|
||||
PublicKey = bd7bbZOngl/FTdBlnbIhgCLNf6yx5X8WjiRB7E1NEQQ=
|
||||
# restrict this to the wireguard subnet if you don't want to route everything to the tunnel
|
||||
AllowedIPs = 0.0.0.0/0, ::/0
|
||||
# ip and port of the peer
|
||||
Endpoint = 66.218.43.87:51820
|
1
home/private_dot_wireguard/adjudicator.pub
Normal file
1
home/private_dot_wireguard/adjudicator.pub
Normal file
@ -0,0 +1 @@
|
||||
r2/IeYCO1T+l248387wUBoNnc2DK9O8pHcIr/NQqezM=
|
1
home/private_dot_wireguard/adjudicator.tmpl
Normal file
1
home/private_dot_wireguard/adjudicator.tmpl
Normal file
@ -0,0 +1 @@
|
||||
{{ (secret "Wireguard - Adjudicator Secret" "NOTES") }}
|
@ -1,7 +1,6 @@
|
||||
[Interface]
|
||||
# your own IP on the wireguard network
|
||||
Address = 192.168.2.4/24
|
||||
Table = auto
|
||||
PrivateKey = {{ (secret "Wireguard - Bulwark Secret" "NOTES") }}
|
||||
|
||||
[Peer]
|
||||
|
@ -58,6 +58,15 @@
|
||||
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
|
||||
# Password-less root
|
||||
security.sudo.extraRules = [{
|
||||
users = [ "${user}" ];
|
||||
commands = [{
|
||||
command = "ALL" ;
|
||||
options= [ "NOPASSWD" ]; # "SETENV" # Adding the following could be a good idea
|
||||
}];
|
||||
}];
|
||||
|
||||
# List packages installed in system profile.
|
||||
environment.systemPackages = with pkgs; [
|
||||
# One-off stable packages
|
||||
|
@ -16,6 +16,9 @@ in {
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Create qr code for phones with:
|
||||
# qrencode -t ansiutf8 < myfile_here
|
||||
environment.systemPackages = with pkgs; [ qrencode ];
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [ 51820 ];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user