This commit is contained in:
mjallen18
2024-09-24 13:22:03 -05:00
parent 44b9221998
commit 215c9864d1
3 changed files with 18 additions and 2 deletions

View File

@@ -116,6 +116,7 @@
# networking.interfaces.veth7.useDHCP = lib.mkDefault true;
# networking.interfaces.vethd3ca67e.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View File

@@ -2,6 +2,7 @@
let
hostname = "jallen-nas";
ipAddress = "10.0.1.18";
ipAddress2 = "10.0.1.19";
gateway = "10.0.1.1";
allowedPorts = [
2342
@@ -14,7 +15,7 @@ let
];
in
{
# Networking configs enp7s0
# Networking configs wlp7s0
networking = {
hostName = hostname;
@@ -34,6 +35,16 @@ in
];
};
wlp7s0 = {
useDHCP = false;
ipv4.addresses = [
{
address = ipAddress2;
prefixLength = 24;
}
];
};
# br0 = {
# useDHCP = false;
# ipv4.addresses = [
@@ -61,6 +72,10 @@ in
"Joey's Jungle 5G" = {
pskRaw = "ext:PSK";
};
"Joey's Jungle 6G" = {
pskRaw = "ext:PSK";
priority = 1000;
};
};
};

View File

@@ -65,7 +65,7 @@ in
};
dhcp = {
enabled = true;
interface_name = "wlp6s0";
interface_name = "wlp7s0";
dhcpv4 = {
gateway_ip = "10.0.1.1";
subnet_mask = "255.255.255.0";