hopefully the last complete restructure of this repo
This commit is contained in:
16
system-config/services/ollama/default.nix
Normal file
16
system-config/services/ollama/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options = {
|
||||
sysconfig.opts.ollama.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.ollama.enable {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user