organized better

This commit is contained in:
lsoriano-mcm
2025-06-07 08:11:17 -05:00
parent 30f2178b6f
commit 73ece504c9
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -3,8 +3,10 @@
username = "biscuit";
timezone = "America/Chicago";
vpnEnable = true;
vpnSecretFile = "/home/biscuit/Wireguard/secret";
vpn = {
vpnEnable = true;
vpnSecretFile = "/home/biscuit/Wireguard/secret";
};
allowUnfree = true;
touchpadSupport = false;
+2 -2
View File
@@ -1,5 +1,5 @@
{
vpnEnable,
vpn,
lib,
...
}: {
@@ -8,7 +8,7 @@
../system/default.nix
../system/users.nix
]
++ lib.optionals (vpnEnable == true) [
++ lib.optionals (vpn.vpnEnable == true) [
../system/vpn.nix
];
}
+2 -2
View File
@@ -1,5 +1,5 @@
{
vpnSecretFile,
vpn,
username,
...
}: {
@@ -8,7 +8,7 @@
address = ["10.2.0.2/32"];
# listenPort = 51820;
# FIXME change privateKey to variable and add env (make sure it is inaccessible!)
privateKeyFile = vpnSecretFile;
privateKeyFile = vpn.vpnSecretFile;
dns = ["10.2.0.1"];
peers = [
{