move stuff
This commit is contained in:
@@ -18,7 +18,7 @@ in
|
||||
hostName = lib.mkForce cfg.hostName;
|
||||
|
||||
# Use networkd if enabled
|
||||
useNetworkd = lib.mkIf cfg.useNetworkd true;
|
||||
useNetworkd = lib.mkDefault true;
|
||||
|
||||
# Set default gateway and nameservers if in manual mode
|
||||
defaultGateway = lib.mkIf (cfg.ipv4.method == "manual") {
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{ lib, namespace, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.${namespace}.services.ollama = {
|
||||
enable = mkEnableOption "enable ollama";
|
||||
};
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.${namespace}.services.ollama;
|
||||
cfg = config.${namespace}.services.ai;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
7
modules/nixos/services/ai/options.nix
Normal file
7
modules/nixos/services/ai/options.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ lib, namespace, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.${namespace}.services.ai = {
|
||||
enable = mkEnableOption "enable ai";
|
||||
};
|
||||
}
|
||||
@@ -15,7 +15,7 @@
|
||||
./boot.nix
|
||||
./apps.nix
|
||||
./grafana.nix
|
||||
# ./networking.nix - moved to modules/nixos/network
|
||||
./networking.nix # - moved to modules/nixos/network
|
||||
./ups.nix
|
||||
./users.nix
|
||||
./samba.nix
|
||||
@@ -48,7 +48,6 @@
|
||||
enableNvidiaDocker = true;
|
||||
};
|
||||
network = {
|
||||
hostName = "jallen-nas";
|
||||
ipv4 = {
|
||||
address = "10.0.1.3/24";
|
||||
method = "manual";
|
||||
@@ -10,7 +10,7 @@ let
|
||||
10200
|
||||
10300
|
||||
8127
|
||||
9980 # onlyoffice
|
||||
9943 # onlyoffice
|
||||
4000 # netbootxyz
|
||||
4080 # netbootxyz
|
||||
3000 # gitea
|
||||
@@ -28,27 +28,27 @@ in
|
||||
{
|
||||
# Networking configs
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
# useNetworkd = true;
|
||||
|
||||
hostId = "4b501480";
|
||||
# hostId = "4b501480";
|
||||
|
||||
nat = {
|
||||
enable = true;
|
||||
internalInterfaces = [ "ve-+" ];
|
||||
externalInterface = "wlp6s0";
|
||||
# Lazy IPv6 connectivity for the container
|
||||
enableIPv6 = true;
|
||||
};
|
||||
# nat = {
|
||||
# enable = true;
|
||||
# internalInterfaces = [ "ve-+" ];
|
||||
# externalInterface = "wlp6s0";
|
||||
# # Lazy IPv6 connectivity for the container
|
||||
# enableIPv6 = true;
|
||||
# };
|
||||
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
# enable = true;
|
||||
# allowPing = true;
|
||||
|
||||
allowedTCPPorts = ports;
|
||||
allowedUDPPorts = ports;
|
||||
|
||||
# always allow traffic from your Tailscale network
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
# # always allow traffic from your Tailscale network
|
||||
# trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user