chore: flake update + optimizations
This commit is contained in:
@@ -12,6 +12,9 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
programs.password-store = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PASSWORD_STORE_DIR = "$XDG_DATA_HOME/password-store";
|
||||
};
|
||||
package =
|
||||
pkgs.pass-wayland.withExtensions
|
||||
(exts: [exts.pass-otp exts.pass-import]);
|
||||
|
||||
@@ -1,29 +1,35 @@
|
||||
{inputs, ...}: {
|
||||
xdg.configFile = {
|
||||
"opencode/commands" = {
|
||||
source = "${inputs.agents}/commands";
|
||||
recursive = true;
|
||||
};
|
||||
"opencode/context" = {
|
||||
source = "${inputs.agents}/context";
|
||||
recursive = true;
|
||||
};
|
||||
"opencode/prompts" = {
|
||||
source = "${inputs.agents}/prompts";
|
||||
recursive = true;
|
||||
};
|
||||
"opencode/skills" = {
|
||||
source = "${inputs.agents}/skills";
|
||||
recursive = true;
|
||||
};
|
||||
{
|
||||
inputs,
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
xdg.configFile."opencode/skills".source = inputs.agents.lib.mkOpencodeSkills {
|
||||
inherit pkgs;
|
||||
customSkills = "${inputs.agents}/skills";
|
||||
externalSkills = [
|
||||
# Include all skills from anthropics/skills
|
||||
{
|
||||
src = inputs.skills-anthropic;
|
||||
selectSkills = ["claude-api"];
|
||||
}
|
||||
# Or cherry-pick specific skills:
|
||||
# { src = inputs.skills-anthropic; selectSkills = [ "mcp-builder" ]; }
|
||||
];
|
||||
};
|
||||
|
||||
# Other config — symlinked directly
|
||||
xdg.configFile."opencode/context".source = "${inputs.agents}/context";
|
||||
xdg.configFile."opencode/commands".source = "${inputs.agents}/commands";
|
||||
xdg.configFile."opencode/prompts".source = "${inputs.agents}/prompts";
|
||||
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
enableMcpIntegration = true;
|
||||
settings = {
|
||||
theme = "opencode";
|
||||
plugin = ["oh-my-opencode" "opencode-beads"];
|
||||
plugin = ["oh-my-opencode"];
|
||||
agent = builtins.fromJSON (builtins.readFile "${inputs.agents}/agents/agents.json");
|
||||
formatter = {
|
||||
alejandra = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
@@ -10,7 +11,7 @@
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
gtk4.theme = {
|
||||
theme = {
|
||||
name = "Dracula";
|
||||
package = pkgs.dracula-theme;
|
||||
};
|
||||
@@ -18,5 +19,6 @@
|
||||
name = "Dracula";
|
||||
package = pkgs.dracula-icon-theme;
|
||||
};
|
||||
gtk4.theme = config.gtk.theme;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user