dotfiles/hosts/NixVM/default.nix

20 lines
485 B
Nix
Raw Normal View History

2024-06-13 13:14:56 +02:00
{ inputs, config, pkgs, ... }:
{
imports = [
2024-06-13 13:21:06 +02:00
(import ../Common/default.nix { inherit inputs config pkgs; })
2024-06-13 13:14:56 +02:00
];
2024-06-13 13:58:30 +02:00
networking.wg-quick.interfaces = {
wg0 = {
address = [ "10.0.0.13/24" ];
privateKeyFile = "/home/user/.secrets/Wireguard/NixVM.key";
listenPort = 51820;
peers = [{
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
allowedIPs = [ "10.0.0.1/8" ];
endpoint = "192.168.1.1:13231";
}];
};
};
2024-06-13 13:14:56 +02:00
}