101 current 2025-10-08 16:41:36 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-08 16:48:26 -05:00
parent 299a8fc435
commit abc2a0579c
2 changed files with 13 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config
# define new devices in outputs
# generation: 100 current 2025-10-08 16:24:55 25.05.20251006.20c4598 6.12.50 *
# generation: 101 current 2025-10-08 16:41:36 25.05.20251006.20c4598 6.12.50 *
{
description = "blakes nix config";
inputs = {

View File

@@ -37,6 +37,7 @@ in
networking.wg-quick.interfaces = lib.mkIf cfg.wg_mex {
wg_mex = {
# client settings
table = 51820;
privateKeyFile = config.sops.secrets."wg_mex_key".path;
address = [ "10.74.252.231/32" "fc00:bbbb:bbbb:bb01::b:fce6/128" ];
dns = [ "10.64.0.1" ];
@@ -47,17 +48,17 @@ in
endpoint = "149.88.22.129:51820";
persistentKeepalive = 25;
} ];
postUp = ''
ip rule add fwmark 0xca6c table 51820
ip route add default dev wg_mex table 51820
ip route add 10.10.0.0/24 dev enp89s0 table 51820
'';
postDown = ''
ip rule delete fwmark 0xca6c table 51820
ip route flush table 51820
'';
# postUp = ''
# ip rule add fwmark 0xca6c table 51820
# ip route add default dev wg_mex table 51820
# ip route add 10.10.0.0/24 dev enp89s0 table 51820
# '';
#
# postDown = ''
# ip rule delete fwmark 0xca6c table 51820
# ip route flush table 51820
#
# '';
};
};