Messing around with ai is fun!
This commit is contained in:
15
modules/user/localai/default.nix
Normal file
15
modules/user/localai/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ...}:
|
||||
|
||||
let
|
||||
cfg = config.userSettings.ai;
|
||||
in {
|
||||
options = {
|
||||
userSettings.ai = {
|
||||
enable = lib.mkEnableOption "Enable localai";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.local-ai ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user