more opencode stuff

This commit is contained in:
Anish Lakhwara
2026-01-13 20:34:35 -08:00
parent 328779b0ac
commit 3b33575b2a
11 changed files with 235 additions and 106 deletions
+84 -42
View File
@@ -32,8 +32,7 @@
poonam.url = "git+ssh://gitea@git.sealight.xyz/aynish/kitaab?ref=main";
poonam.inputs.nixpkgs.follows = "nixpkgs";
basant.url = "git+ssh://gitea@git.sealight.xyz/aynish/basant?ref=main";
vimwikicli.url =
"git+ssh://gitea@git.sealight.xyz/aynish/vimwiki-cli?ref=main";
vimwikicli.url = "git+ssh://gitea@git.sealight.xyz/aynish/vimwiki-cli?ref=main";
basant.inputs.nixpkgs.follows = "nixpkgs";
basant.inputs.poonam.follows = "poonam";
vimwikicli.inputs.nixpkgs.follows = "nixpkgs";
@@ -76,8 +75,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# LLM Agents
llm-agents.url = "github:numtide/llm-agents.nix";
# LLM Agents (using fork until chainlink PR is merged)
llm-agents.url = "github:Chickensoupwithrice/llm-agents.nix";
# Others
nur.url = "github:nix-community/NUR";
@@ -100,10 +99,34 @@
# muneem.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, unstable, nixos-hardware, home-manager, deploy-rs
, agenix, disko, basant, grasp, nix-matrix-appservices, nur, tidalcycles
, rust-overlay, vimwikicli, autohide-tdrop, darwin, nix-homebrew, homebrew-bundle
, homebrew-core, homebrew-cask, jovian, tangled, llm-agents, ... }@inputs:
outputs =
{
self,
nixpkgs,
unstable,
nixos-hardware,
home-manager,
deploy-rs,
agenix,
disko,
basant,
grasp,
nix-matrix-appservices,
nur,
tidalcycles,
rust-overlay,
vimwikicli,
autohide-tdrop,
darwin,
nix-homebrew,
homebrew-bundle,
homebrew-core,
homebrew-cask,
jovian,
tangled,
llm-agents,
...
}@inputs:
let
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
@@ -122,14 +145,16 @@
autohide-tdrop = autohide-tdrop.packages.${prev.system}.default;
};
nixpkgsFor = forAllSystems (system:
nixpkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
config = {
permittedInsecurePackages = [
"olm-3.2.16"
"olm-3.2.16"
];
allowUnfreePredicate = pkg:
allowUnfreePredicate =
pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"ripcord"
"vcv-rack"
@@ -149,10 +174,12 @@
self.overlays.additions
self.overlays.modifications
];
});
}
);
# for when space matters
litePkgsFor = forAllSystems (system:
litePkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
# config.permittedInsecurePackages = [
@@ -166,17 +193,20 @@
self.overlays.modifications
tidalcycles.overlays.default # needed for nvim which comes pre-installed lol
];
});
}
);
# Package set for Darwin systems
darwinPkgsFor = forAllSystems (system:
# Package set for Darwin systems
darwinPkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
config = {
permittedInsecurePackages = [
"olm-3.2.16"
"olm-3.2.16"
];
allowUnfreePredicate = pkg:
allowUnfreePredicate =
pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"ripcord"
"vcv-rack"
@@ -194,17 +224,20 @@
self.overlays.additions
self.overlays.modifications
];
});
}
);
# Package set for Steam Deck (gaming-focused)
deckPkgsFor = forAllSystems (system:
deckPkgsFor = forAllSystems (
system:
import unstable {
inherit system;
config = {
permittedInsecurePackages = [
"olm-3.2.16"
"olm-3.2.16"
];
allowUnfreePredicate = pkg:
allowUnfreePredicate =
pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"ripcord"
"vcv-rack"
@@ -227,18 +260,28 @@
self.overlays.additions
self.overlays.modifications
];
});
in {
}
);
in
{
# Your custom packages
# Acessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system:
let pkgs = nixpkgsFor.${system};
in import ./pkgs { pkgs = pkgs; });
packages = forAllSystems (
system:
let
pkgs = nixpkgsFor.${system};
in
import ./pkgs { pkgs = pkgs; }
);
# Devshell for bootstrapping
# Acessible through 'nix develop' or 'nix-shell' (legacy)
devShells = forAllSystems (system:
let pkgs = nixpkgsFor.${system};
in import ./shell.nix { pkgs = pkgs; });
devShells = forAllSystems (
system:
let
pkgs = nixpkgsFor.${system};
in
import ./shell.nix { pkgs = pkgs; }
);
# Your custom packages and modifications, exported as overlays
overlays = import ./overlays;
@@ -359,7 +402,7 @@
#};
};
# Darwin configuration entrypoint
# Darwin configuration entrypoint
darwinConfigurations = {
"Anishs-MacBook-Pro" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
@@ -386,10 +429,12 @@
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
"anish@work" = home-manager.lib.homeManagerConfiguration {
pkgs =
nixpkgsFor."x86_64-linux"; # Home-manager requires 'pkgs' instance
pkgs = nixpkgsFor."x86_64-linux"; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs; };
modules = [ ./home/core.nix ./home/profiles/firefox ];
modules = [
./home/core.nix
./home/profiles/firefox
];
};
};
@@ -401,8 +446,7 @@
remoteBuild = true;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.box;
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.box;
};
};
lituus = {
@@ -411,8 +455,7 @@
remoteBuild = true;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.lituus;
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lituus;
};
};
helix = {
@@ -421,13 +464,12 @@
magicRollback = false;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.helix;
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix;
};
};
};
# checks = builtins.mapAttrs
# (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
# checks = builtins.mapAttrs
# (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
};
}