mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 01:24:01 +05:30
messing around with some ai
This commit is contained in:
parent
a8a0e1249d
commit
27d121a412
2 changed files with 10 additions and 2 deletions
|
@ -29,6 +29,7 @@
|
||||||
virtualization = {
|
virtualization = {
|
||||||
virtualMachines.enable = true;
|
virtualMachines.enable = true;
|
||||||
};
|
};
|
||||||
|
ai.enable = true;
|
||||||
|
|
||||||
# wm
|
# wm
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, pkgs-stable, ...}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.userSettings.ai;
|
cfg = config.userSettings.ai;
|
||||||
|
@ -10,6 +10,13 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.local-ai ];
|
home.packages = [ pkgs-stable.local-ai
|
||||||
|
(pkgs.writeScriptBin "aid"
|
||||||
|
''
|
||||||
|
# ai daemon
|
||||||
|
pushd ~/.config/local-ai;
|
||||||
|
local-ai &> /dev/null & disown;
|
||||||
|
popd;'')
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue