upde
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
hostname = "nixos";
|
hostname = "nixos";
|
||||||
username = "biscuit";
|
username = "biscuit";
|
||||||
timezone = "America/Chicago";
|
timezone = "America/Chicago";
|
||||||
|
|
||||||
vpnEnable = true;
|
vpnEnable = true;
|
||||||
|
vpnSecretFile = "/home/biscuit/Wireguard/secret";
|
||||||
|
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|||||||
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
{...}: {
|
{vpnSecretFile, ...}: {
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
biscuit-default = {
|
biscuit-default = {
|
||||||
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 = "/home/biscuit/Wireguard/secret";
|
privateKeyFile = vpnSecretFile;
|
||||||
dns = ["10.2.0.1"];
|
dns = ["10.2.0.1"];
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user