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"; username = "biscuit";
timezone = "America/Chicago"; timezone = "America/Chicago";
vpnEnable = true; vpn = {
vpnSecretFile = "/home/biscuit/Wireguard/secret"; vpnEnable = true;
vpnSecretFile = "/home/biscuit/Wireguard/secret";
};
allowUnfree = true; allowUnfree = true;
touchpadSupport = false; touchpadSupport = false;
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
vpnEnable, vpn,
lib, lib,
... ...
}: { }: {
@@ -8,7 +8,7 @@
../system/default.nix ../system/default.nix
../system/users.nix ../system/users.nix
] ]
++ lib.optionals (vpnEnable == true) [ ++ lib.optionals (vpn.vpnEnable == true) [
../system/vpn.nix ../system/vpn.nix
]; ];
} }
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
vpnSecretFile, vpn,
username, username,
... ...
}: { }: {
@@ -8,7 +8,7 @@
address = ["10.2.0.2/32"]; address = ["10.2.0.2/32"];
# listenPort = 51820; # listenPort = 51820;
# FIXME change privateKey to variable and add env (make sure it is inaccessible!) # FIXME change privateKey to variable and add env (make sure it is inaccessible!)
privateKeyFile = vpnSecretFile; privateKeyFile = vpn.vpnSecretFile;
dns = ["10.2.0.1"]; dns = ["10.2.0.1"];
peers = [ peers = [
{ {