move stuff
This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{ lib, namespace, ... }:
|
|
||||||
with lib;
|
|
||||||
{
|
|
||||||
options.${namespace}.services.ollama = {
|
|
||||||
enable = mkEnableOption "enable ollama";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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 ];
|
||||||
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
|
./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";
|
||||||
@@ -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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user