update, calibre, and wireguard on roam
This commit is contained in:
parent
15660bda99
commit
a6a5ff50df
5 changed files with 51 additions and 23 deletions
|
|
@ -1,9 +1,21 @@
|
|||
{ var, ... }:
|
||||
{
|
||||
var,
|
||||
config,
|
||||
secrets,
|
||||
...
|
||||
}:
|
||||
let
|
||||
wireguard-port = 51820;
|
||||
in
|
||||
|
||||
{
|
||||
age.secrets.mullvad-vpn-key = {
|
||||
file = secrets.roam."mullvad-vpn-key.age";
|
||||
owner = "root";
|
||||
group = "root";
|
||||
mode = "440";
|
||||
};
|
||||
|
||||
networking = {
|
||||
enableIPv6 = true;
|
||||
|
||||
|
|
@ -48,6 +60,21 @@ in
|
|||
privateKeyFile = var.wg.keyFile;
|
||||
peers = var.wg.peers-for "roam";
|
||||
};
|
||||
interfaces."mullvad" = {
|
||||
ips = [
|
||||
"10.69.173.41/32"
|
||||
"fc00:bbbb:bbbb:bb01::6:ad28/128"
|
||||
]; # free cat
|
||||
privateKeyFile = config.age.secrets.mullvad-vpn-key.path;
|
||||
peers = [
|
||||
{
|
||||
name = "de-fra-wg-007";
|
||||
publicKey = "mTmrSuXmTnIC9l2Ur3/QgodGrVEhhIE3pRwOHZpiYys=";
|
||||
allowedIPs = [ ];
|
||||
endpoint = "de-fra-wg-007.relays.mullvad.net:51820";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue