move stuff

This commit is contained in:
mjallen18
2025-08-26 17:20:27 -05:00
parent f66c0726b0
commit d15762b199
68 changed files with 24 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ in
hostName = lib.mkForce cfg.hostName; hostName = lib.mkForce cfg.hostName;
# Use networkd if enabled # Use networkd if enabled
useNetworkd = lib.mkIf cfg.useNetworkd true; useNetworkd = lib.mkDefault true;
# Set default gateway and nameservers if in manual mode # Set default gateway and nameservers if in manual mode
defaultGateway = lib.mkIf (cfg.ipv4.method == "manual") { defaultGateway = lib.mkIf (cfg.ipv4.method == "manual") {

View File

@@ -1,7 +0,0 @@
{ lib, namespace, ... }:
with lib;
{
options.${namespace}.services.ollama = {
enable = mkEnableOption "enable ollama";
};
}

View File

@@ -7,7 +7,7 @@
}: }:
with lib; with lib;
let let
cfg = config.${namespace}.services.ollama; cfg = config.${namespace}.services.ai;
in in
{ {
imports = [ ./options.nix ]; imports = [ ./options.nix ];

View File

@@ -0,0 +1,7 @@
{ lib, namespace, ... }:
with lib;
{
options.${namespace}.services.ai = {
enable = mkEnableOption "enable ai";
};
}

View File

@@ -15,7 +15,7 @@
./boot.nix ./boot.nix
./apps.nix ./apps.nix
./grafana.nix ./grafana.nix
# ./networking.nix - moved to modules/nixos/network ./networking.nix # - moved to modules/nixos/network
./ups.nix ./ups.nix
./users.nix ./users.nix
./samba.nix ./samba.nix
@@ -48,7 +48,6 @@
enableNvidiaDocker = true; enableNvidiaDocker = true;
}; };
network = { network = {
hostName = "jallen-nas";
ipv4 = { ipv4 = {
address = "10.0.1.3/24"; address = "10.0.1.3/24";
method = "manual"; method = "manual";

View File

@@ -10,7 +10,7 @@ let
10200 10200
10300 10300
8127 8127
9980 # onlyoffice 9943 # onlyoffice
4000 # netbootxyz 4000 # netbootxyz
4080 # netbootxyz 4080 # netbootxyz
3000 # gitea 3000 # gitea
@@ -28,27 +28,27 @@ in
{ {
# Networking configs # Networking configs
networking = { networking = {
useNetworkd = true; # useNetworkd = true;
hostId = "4b501480"; # hostId = "4b501480";
nat = { # nat = {
enable = true; # enable = true;
internalInterfaces = [ "ve-+" ]; # internalInterfaces = [ "ve-+" ];
externalInterface = "wlp6s0"; # externalInterface = "wlp6s0";
# Lazy IPv6 connectivity for the container # # Lazy IPv6 connectivity for the container
enableIPv6 = true; # enableIPv6 = true;
}; # };
firewall = { firewall = {
enable = true; # enable = true;
allowPing = true; # allowPing = true;
allowedTCPPorts = ports; allowedTCPPorts = ports;
allowedUDPPorts = ports; allowedUDPPorts = ports;
# always allow traffic from your Tailscale network # # always allow traffic from your Tailscale network
trustedInterfaces = [ "tailscale0" ]; # trustedInterfaces = [ "tailscale0" ];
}; };
}; };
} }