This commit is contained in:
mjallen18
2025-07-22 18:03:18 -05:00
parent 1d1f145b37
commit f8e80bd44c
7 changed files with 133 additions and 81 deletions

View File

@@ -19,6 +19,9 @@ in
${namespace} = {
hardware.disko.enable = true;
desktop.hyprland.enable = false;
network = {
hostName = "pi5";
};
};
# Enable nix flakes and nix-command tools

View File

@@ -14,41 +14,5 @@ in
enable = true;
allowPing = true;
};
# Enable Network Manager
networkmanager = {
enable = lib.mkDefault true;
wifi.powersave = lib.mkDefault false;
settings.connectivity.uri = lib.mkDefault "http://nmcheck.gnome.org/check_network_status.txt";
ensureProfiles = {
environmentFiles = [
config.sops.secrets.wifi.path
];
profiles = {
"Joey's Jungle 5G" = {
connection = {
id = "Joey's Jungle 5G";
type = "wifi";
};
ipv4 = {
method = "auto";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
wifi = {
mode = "infrastructure";
ssid = "Joey's Jungle 5G";
};
wifi-security = {
key-mgmt = "sae";
psk = "$PSK";
};
};
};
};
};
};
}

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, namespace, ... }:
{ namespace, ... }:
{
${namespace} = {
services = {

View File

@@ -6,7 +6,6 @@
config,
pkgs,
lib,
inputs,
namespace,
...
}:
@@ -39,6 +38,13 @@
nvidiaSettings = true;
enableNvidiaDocker = true;
};
network = {
hostName = "jallen-nas";
ipv4 = {
address = "10.0.1.3/24";
method = "manual";
};
};
user = {
name = "admin";
};

View File

@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ ... }:
let
ports = [
8008 # restic
@@ -28,49 +28,10 @@ in
{
# Networking configs
networking = {
hostName = lib.mkForce "jallen-nas";
useNetworkd = true;
hostId = "4b501480";
# Disable Network Manager
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.3/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;
internalInterfaces = [ "ve-+" ];