remove opencode, it is a nightmare to keep updated, using nix-ld instead

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-08-18 17:38:46 -05:00
parent 1ebdb42d62
commit 066e915e43
14 changed files with 82 additions and 180 deletions

View file

@ -14,7 +14,6 @@ in
./podman.nix
./incus.nix
./flatpaks.nix
./opencode.nix
./virt-manager.nix
];
config = {

View file

@ -1,34 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
ccfg = import ../config.nix;
cfg_path = [
ccfg.custom_config_key
"programs"
"opencode"
];
cfg = lib.attrsets.getAttrFromPath cfg_path config;
in
{
options =
{ }
// lib.attrsets.setAttrByPath cfg_path {
enable = lib.mkEnableOption "opencode";
};
config = lib.mkIf cfg.enable ({
environment.systemPackages = with pkgs; [
opencode
];
environment.shellAliases = {
"oc" = "all_proxy='' http_proxy='' https_proxy='' opencode";
};
});
}