networking

This commit is contained in:
mjallen18
2025-03-20 21:32:22 -05:00
parent 3714518ead
commit 79901a9f60
4 changed files with 87 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
let
hostname = "jallen-nas";
ports = [
@@ -24,7 +24,41 @@ in
hostId = "4b501480";
# Disable Network Manager
networkmanager.enable = true;
networkmanager = {
enable = true;
ensureProfiles = {
environmentFiles = [
config.sops.secrets.wifi.path
];
profiles = {
"Joey's Jungle 6G" = {
connection = {
id = "Joey's Jungle 6G";
type = "wifi";
};
ipv4 = {
address1 = "10.0.1.18/24";
dns = "10.0.1.1";
gateway = "10.0.1.1";
method = "manual";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
wifi = {
mode = "infrastructure";
ssid = "Joey's Jungle 6G";
};
wifi-security = {
key-mgmt = "sae";
psk = "$PSK";
};
};
};
};
};
nat = {
enable = true;