mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 09:34:00 +05:30
Messing around with ai is fun!
This commit is contained in:
parent
f86049f259
commit
dafd115747
2 changed files with 16 additions and 0 deletions
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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue