mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-03-13 03:24:05 +01:00
Compare commits
2 commits
8417c46a6d
...
cf99262194
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf99262194 | ||
|
|
610b684b34 |
5 changed files with 32 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ in
|
|||
sshKeyFile = secrets."borgbackup/ssh_key".path;
|
||||
paths = [ "/" ];
|
||||
};
|
||||
llm.enable = true;
|
||||
vpn.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,7 +119,6 @@ in
|
|||
"/home/*/.gvfs"
|
||||
"/home/*/.local/share/Trash"
|
||||
"/home/*/.thumbnails"
|
||||
"/home/*/.config/Element/Cache"
|
||||
|
||||
# self-defined
|
||||
"/data/tmp"
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
./homepage
|
||||
./homer
|
||||
./initrd-ssh
|
||||
./llm
|
||||
./loki
|
||||
./matrix-bot
|
||||
./media
|
||||
|
|
|
|||
26
modules/services/llm/default.nix
Normal file
26
modules/services/llm/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# enable local llms
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.services.llm;
|
||||
in
|
||||
{
|
||||
options.my.services.llm = {
|
||||
enable = lib.mkEnableOption "Enable llm service";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.ollama;
|
||||
};
|
||||
|
||||
my.services.backup.exclude = [
|
||||
config.services.ollama.home
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -19,5 +19,9 @@ in
|
|||
mumble
|
||||
teamspeak6-client
|
||||
];
|
||||
|
||||
my.services.backup.exclude = [
|
||||
"/home/*/.config/Element/Cache"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue