add nas settings file

This commit is contained in:
mjallen18
2025-07-07 11:27:09 -05:00
parent 803f229a4a
commit 6b28f57207
11 changed files with 55 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
with lib;
let
cfg = config.nas-apps.actual;
settings = import ../settings.nix;
settings = import ../../settings.nix;
dataDir = "/data";
hostAddress = settings.hostAddress;
actualUserId = config.users.users.nix-apps.uid;

View File

@@ -7,7 +7,7 @@
with lib;
let
cfg = config.nas-apps.arrs;
settings = import ../settings.nix;
settings = import ../../settings.nix;
radarrDataDir = "/var/lib/radarr";
downloadDir = "/downloads";
incompleteDir = "/downloads-incomplete";

View File

@@ -2,7 +2,7 @@
with lib;
let
cfg = config.nas-apps.gitea;
settings = import ../settings.nix;
settings = import ../../settings.nix;
hostAddress = settings.hostAddress;
# localAddress = "10.0.4.18";
# httpPort = 3000;

View File

@@ -1,6 +1,6 @@
{ config, lib, ... }:
let
settings = import ../settings.nix;
settings = import ../../settings.nix;
immichPort = 2283;
dataDir = "/media/nas/main/photos";
dbPassword = config.sops.secrets."jallen-nas/immich/db-password".path;

View File

@@ -3,7 +3,7 @@
let
jellyseerrPort = 5055;
dataDir = "/var/lib/private/jellyseerr";
settings = import ../settings.nix;
settings = import ../../settings.nix;
in
{
containers.jellyseerr = {

View File

@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
let
settings = import ../settings.nix;
settings = import ../../settings.nix;
adminpass = config.sops.secrets."jallen-nas/nextcloud/adminpassword".path;
secretsFile = config.sops.secrets."jallen-nas/nextcloud/smtp_settings".path;
jwtSecretFile = config.sops.secrets."jallen-nas/onlyoffice-key".path;
@@ -55,7 +55,7 @@ in
config =
{ pkgs, lib, ... }:
{
imports = [ ../../../../share/nvidia ];
imports = [ ../../../../modules/nvidia ];
nixpkgs.config.allowUnfree = true;
networking.extraHosts = ''
${hostAddress} host.containers protonmail-bridge

View File

@@ -4,7 +4,7 @@
...
}:
let
settings = import ../settings.nix;
settings = import ../../settings.nix;
paperlessPort = 28981;
paperlessUserId = config.users.users.nix-apps.uid;
paperlessGroupId = config.users.groups.jallen-nas.gid;

View File

@@ -1,6 +1,6 @@
{ config, ... }:
let
settings = import ../settings.nix;
settings = import ../../settings.nix;
domain = "mjallen.dev";
serverIp = settings.hostAddress;

View File

@@ -27,7 +27,7 @@ in
{
# Networking configs
networking = {
hostName = settings.hostname;
hostName = settings.hostName;
useNetworkd = true;

5
hosts/nas/settings.nix Normal file
View File

@@ -0,0 +1,5 @@
{
username = "admin";
hostAddress = "10.0.1.3";
hostName = "jallen-nas";
}