Compare commits

...
4 Commits
Author SHA1 Message Date
imxyy1soope1 86a132344a coding: direnv: load .envrc.local 2026-08-16 15:30:01 +08:00
imxyy1soope1 810641a7bb agents: persist ZCode 2026-08-16 15:29:44 +08:00
imxyy1soope1 425ae29c3d agents: use nixpkgs's codex 2026-08-16 15:29:30 +08:00
imxyy1soope1 6d6a93e64c nix: add nix-tree-rs and fast-nix-gc 2026-08-15 15:55:29 +08:00
6 changed files with 133 additions and 12 deletions
Generated
+73
View File
@@ -157,6 +157,30 @@
"type": "github"
}
},
"fast-nix-gc": {
"inputs": {
"nix-darwin": "nix-darwin",
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": [
"treefmt"
]
},
"locked": {
"lastModified": 1786625301,
"narHash": "sha256-KNAjsTgfweOoqYxMAsIolrDcIV5AikvrSW9EpJ7fnK8=",
"owner": "Mic92",
"repo": "fast-nix-gc",
"rev": "254a2ba0a4f1570b3880bc10bb6166afe1e25936",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "fast-nix-gc",
"type": "github"
}
},
"fenix": {
"inputs": {
"nixpkgs": [
@@ -461,6 +485,53 @@
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
"fast-nix-gc",
"nixpkgs"
]
},
"locked": {
"lastModified": 1785389976,
"narHash": "sha256-0tLW8Ff5yt8AH97jw4ZpFJ0OCJ122zIlgWGDmOfU/VU=",
"owner": "nix-darwin",
"repo": "nix-darwin",
"rev": "15abb8c98f336cd8bd840d71059adebabe60bf04",
"type": "github"
},
"original": {
"owner": "nix-darwin",
"repo": "nix-darwin",
"type": "github"
}
},
"nix-tree-rs": {
"inputs": {
"flake-parts": [
"flake-parts"
],
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": [
"treefmt"
]
},
"locked": {
"lastModified": 1786373799,
"narHash": "sha256-/MGTSKLPC6uERKHyilzRCVPDeX/AwG+4B8bf1vMHAJg=",
"owner": "Mic92",
"repo": "nix-tree-rs",
"rev": "31d54916fa110e9462fec799f1663224baddbadd",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "nix-tree-rs",
"type": "github"
}
},
"nixos-wsl": {
"inputs": {
"flake-compat": [
@@ -593,6 +664,7 @@
"inputs": {
"angrr": "angrr",
"darkly": "darkly",
"fast-nix-gc": "fast-nix-gc",
"fenix": "fenix",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
@@ -605,6 +677,7 @@
"multiverse": "multiverse",
"my-templates": "my-templates",
"niri-nix": "niri-nix",
"nix-tree-rs": "nix-tree-rs",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_2",
"noctalia": "noctalia",
+11
View File
@@ -68,6 +68,11 @@
url = "github:Bali10050/Darkly";
inputs.nixpkgs.follows = "nixpkgs";
};
fast-nix-gc = {
url = "github:Mic92/fast-nix-gc";
inputs.nixpkgs.follows = "nixpkgs";
inputs.treefmt-nix.follows = "treefmt";
};
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
@@ -84,6 +89,12 @@
url = "git+https://codeberg.org/bananad3v/niri-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-tree-rs = {
url = "github:Mic92/nix-tree-rs";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.treefmt-nix.follows = "treefmt";
};
noctalia = {
url = "github:noctalia-dev/noctalia-shell/v4.7.5";
inputs.nixpkgs.follows = "nixpkgs";
+16 -5
View File
@@ -12,12 +12,23 @@
inputs.niri-nix.overlays.niri-nix
inputs.fenix.overlays.default
inputs.angrr.overlays.default
(final: prev: {
darkly-qt6 = inputs.darkly.packages.${final.stdenv.hostPlatform.system}.darkly-qt6;
noctalia-shell = inputs.noctalia.packages.${final.stdenv.hostPlatform.system}.default;
})
inputs.llm-agents.overlays.shared-nixpkgs
(
final: prev:
let
system = final.stdenv.hostPlatform.system;
in
{
darkly-qt6 = inputs.darkly.packages.${system}.darkly-qt6;
noctalia-shell = inputs.noctalia.packages.${system}.default;
nix-tree-rs = inputs.nix-tree-rs.packages.${system}.default;
fast-nix-gc = inputs.fast-nix-gc.packages.${system}.default.overrideAttrs {
doCheck = false;
};
}
)
];
config.allowUnfree = true;
flake.setNixPath = false;
+14 -7
View File
@@ -14,13 +14,17 @@ in
config = lib.mkIf cfg.enable {
my.hm = {
home.packages = with pkgs.llm-agents; [
codex
claude-code
# opencode
pi
omp
];
home.packages =
(with pkgs.llm-agents; [
# codex
claude-code
# opencode
pi
omp
])
++ (with pkgs; [
codex
]);
};
my.persist = {
homeDirs = [
@@ -35,6 +39,9 @@ in
".pi"
".omp"
".config/ZCode"
".zcode"
];
homeFiles = [
".claude.json"
+17
View File
@@ -28,6 +28,23 @@ in
hide_env_diff = false;
};
};
stdlib = lib.mkAfter ''
if [[ -f .envrc.local && -z "$DIRENV_LOCAL_LOADED" ]]; then
export DIRENV_LOCAL_LOADED=1
log_status ".envrc.local detected, loading..."
skip_default_envrc() {
log_status "skip_default_envrc triggered, skipping .envrc"
exit 0
}
source_env .envrc.local
use() {
log_status "intercepted 'use $@' in .envrc"
}
fi
'';
};
};
my.persist.homeDirs = [
+2
View File
@@ -30,6 +30,8 @@ in
environment.systemPackages = with pkgs; [
nix-output-monitor
nh
nix-tree-rs
fast-nix-gc
];
environment.etc = (