remove opencode, it is a nightmare to keep updated, using nix-ld instead
This commit is contained in:
parent
1ebdb42d62
commit
066e915e43
14 changed files with 82 additions and 180 deletions
|
|
@ -14,7 +14,6 @@ in
|
|||
./podman.nix
|
||||
./incus.nix
|
||||
./flatpaks.nix
|
||||
./opencode.nix
|
||||
./virt-manager.nix
|
||||
];
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue