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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user