mirror of
https://git.gay/xqtc/nixos-config
synced 2025-05-04 13:37:30 +02:00
Compare commits
3 commits
51181fcd1a
...
8a61160ee8
Author | SHA1 | Date | |
---|---|---|---|
8a61160ee8 | |||
28c73eaba5 | |||
0bf22732c4 |
4 changed files with 24 additions and 15 deletions
hosts/x86_64-linux/beleth
|
@ -126,11 +126,11 @@ with lib; {
|
|||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
# programs.ssh.extraConfig = ''
|
||||
# Host frotting
|
||||
# HostName 2a0f:be01:0:100::a3
|
||||
# User communism
|
||||
# '';
|
||||
programs.ssh.extraConfig = ''
|
||||
Host frotting
|
||||
HostName 2a0f:be01:0:100::a3
|
||||
User communism
|
||||
'';
|
||||
|
||||
services.mullvad-vpn.enable = true;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
ipv6 = {
|
||||
addresses = [
|
||||
{
|
||||
address = "2a01:4f8:10a:1aab::1";
|
||||
address = "2a01:4f8:10a:1aab::2";
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
|
@ -41,6 +41,6 @@
|
|||
|
||||
services.resolved.enable = true;
|
||||
services.resolved.extraConfig = ''
|
||||
DNS=185.12.64.1 185.12.64.2 2a01:4ff:ff00::add:1 2a01:4ff:ff00::add:2
|
||||
DNS=185.12.64.1 185.12.64.2 2a01:4ff:ff00::add:1 2a01:4ff:ff00::add:2
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{config, lib, inputs, ...}:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
systemd.mounts."frotting" = {
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,16 +4,18 @@
|
|||
inputs,
|
||||
...
|
||||
}: {
|
||||
# networking.nat.enable = true;
|
||||
# networking.nat.externalInterface = "enp0s31f6";
|
||||
# networking.nat.internalInterfaces = "wg0";
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [51820];
|
||||
};
|
||||
|
||||
networking.wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [/* "2a0f:be01:fe:fa1::1/64" */ "2a01:4f8:10a:1aab:f000::1/80"];
|
||||
ips = [
|
||||
/*
|
||||
"2a0f:be01:fe:fa1::1/64"
|
||||
*/
|
||||
"2a01:4f8:10a:1aab:f000::1/80"
|
||||
];
|
||||
|
||||
listenPort = 51820;
|
||||
|
||||
|
@ -23,9 +25,13 @@
|
|||
{
|
||||
#anner
|
||||
publicKey = "5ar4lh3Ra4TRmUJeeBtPgDvZnAkGssJDUN53y9oa3So=";
|
||||
allowedIPs = ["2a0f:be01::/40"];
|
||||
allowedIPs = [
|
||||
"2a0f:be01:0:100::/64"
|
||||
"2a0f:be01:0:200::/64"
|
||||
"2a0f:be01:fe:f00::/56"
|
||||
];
|
||||
endpoint = "[2a0f:be01::1]:51822";
|
||||
persistentKeepalive = 15;
|
||||
persistentKeepalive = 15;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue