refactor: add ai config option
This commit is contained in:
parent
e525d68112
commit
72e98aa61c
3 changed files with 43 additions and 30 deletions
|
@ -14,6 +14,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
my = {
|
my = {
|
||||||
|
ai.enable = true;
|
||||||
profiles = {
|
profiles = {
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
|
|
8
modules/config/ai.nix
Normal file
8
modules/config/ai.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ lib
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.my.ai.enable = mkEnableOption "AI stuff";
|
||||||
|
}
|
|
@ -1,9 +1,12 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkIf readFile;
|
inherit (lib) mkIf;
|
||||||
|
|
||||||
|
cfg = config.my.ai;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.moritz.programs.nixvim = {
|
home-manager.users.moritz.programs.nixvim = {
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
nui-nvim
|
nui-nvim
|
||||||
|
@ -26,12 +29,13 @@ in
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
# plugins.copilot-lua.enable = true;
|
|
||||||
# plugins.copilot-lua.suggestion.enabled = false;
|
|
||||||
# plugins.copilot-lua.panel.enabled = false;
|
|
||||||
plugins.dressing.enable = true;
|
plugins.dressing.enable = true;
|
||||||
# performance.combinePlugins.standalonePlugins = [ "copilot.lua" ];
|
|
||||||
};
|
};
|
||||||
age.secrets."openai".file = ../../../../secrets/openai.age;
|
age.secrets = {
|
||||||
age.secrets."openai".owner = "moritz";
|
"openai".file = ../../../../secrets/openai.age;
|
||||||
|
"openai".owner = "moritz";
|
||||||
|
anthropic.file = ../../../../secrets/anthropic.age;
|
||||||
|
anthropic.owner = "moritz";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue