organized better
This commit is contained in:
+4
-2
@@ -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
@@ -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
@@ -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 = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user