update, calibre, and wireguard on roam

This commit is contained in:
Henri Dohmen 2026-03-18 15:24:09 +01:00
parent 15660bda99
commit a6a5ff50df
Signed by: hd
GPG key ID: 08CED9F43E22CE3E
5 changed files with 51 additions and 23 deletions

View file

@ -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";
}
];
};
};
};