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";