This commit is contained in:
biscuit
2025-05-21 17:54:30 -05:00
parent 4f0c6d3e46
commit c16cedf981
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -2,7 +2,10 @@
hostname = "nixos";
username = "biscuit";
timezone = "America/Chicago";
vpnEnable = true;
vpnSecretFile = "/home/biscuit/Wireguard/secret";
allowUnfree = true;
shellAliases = {
+2 -2
View File
@@ -1,10 +1,10 @@
{...}: {
{vpnSecretFile, ...}: {
networking.wg-quick.interfaces = {
biscuit-default = {
address = ["10.2.0.2/32"];
# listenPort = 51820;
# FIXME change privateKey to variable and add env (make sure it is inaccessible!)
privateKeyFile = "/home/biscuit/Wireguard/secret";
privateKeyFile = vpnSecretFile;
dns = ["10.2.0.1"];
peers = [
{