This commit is contained in:
mjallen18
2026-03-30 16:09:25 -05:00
parent 8d8d49bd38
commit a88736cf6e
23 changed files with 273 additions and 58 deletions

View File

@@ -7,6 +7,7 @@
}:
let
inherit (lib.${namespace}) enabled disabled;
net = lib.${namespace}.network;
in
{
imports = [
@@ -122,11 +123,11 @@ in
# ###################################################
network = {
hostName = "jallen-nas";
hostName = net.hosts.nas.hostname;
ipv4 = {
address = "10.0.1.3";
address = net.hosts.nas.lan;
method = "manual";
gateway = "10.0.1.1";
gateway = net.hosts.nas.gateway;
dns = "1.1.1.1";
interface = "enp197s0";
};
@@ -215,6 +216,7 @@ in
samba = {
enable = true;
# Allow the LAN /24 subnet (strip the last octet from the NAS LAN IP for the prefix)
hostsAllow = "10.0.1. 127.0.0.1 localhost";
forceGroup = "jallen-nas";
forceUser = "nix-apps";

View File

@@ -1,4 +1,7 @@
{ namespace, ... }:
{ lib, namespace, ... }:
let
net = lib.${namespace}.network;
in
{
imports = [
./boot.nix
@@ -31,12 +34,12 @@
};
network = {
hostName = "nuc-nixos";
hostName = net.hosts.nuc.hostname;
ipv4 = {
method = "manual";
address = "10.0.1.4/24";
gateway = "10.0.1.1";
dns = "10.0.1.1";
address = net.hosts.nuc.lan4;
gateway = net.hosts.nuc.gateway;
dns = net.hosts.router.lan;
interface = "enp2s0";
};
firewall = {