This commit is contained in:
Anthony Cicchetti 2025-01-03 22:52:44 -05:00
parent b4bc034f9b
commit 7dcfd82a90
3 changed files with 36 additions and 0 deletions

1
cy/cy.janet Normal file
View file

@ -0,0 +1 @@
(key/bind :root ["ctrl+a" "p"] action/command-palette)

View file

@ -58,6 +58,7 @@ in {
[[ssh-keys]]
item = "mpf42t6kn2hxijw5jsqti4hxfm"
'';
"cy/cyrc.janet".source = ./${repo_root}/cy/cy.janet;
"doom/init.el" = {
source = ./${repo_root}/emacs/emacs.doom/init.el;
onChange = "~/.emacs.d/bin/doom sync";

View file

@ -5,6 +5,38 @@
# ncdu (well, all zig packages) don't work on macOS nix right now
then [zsh racket mold ncdu ghostty]
else [keka colima neovide aerospace];
cy = {
pkgs,
fetchFromGitHub,
}: let
ver = "1.3.1";
in
pkgs.buildGoModule {
pname = "cy";
version = "${ver}";
src = fetchFromGitHub {
owner = "cfoust";
repo = "cy";
rev = "refs/tags/v${ver}";
hash = "sha256-W7xCAeoBn6nrSzkBX59qulIcgigeHhaaa38vfEEuaAQ=";
};
vendorHash = null;
buildPhase = ''
runHook preBuild
export GOCACHE=$PWD/.cache/go-build
go install ./cmd/cy/
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin $GOPATH/bin/cy
runHook postInstall
'';
};
in {
imports = [
./git.nix
@ -14,6 +46,7 @@ in {
./starship.nix
./zellij.nix
./zsh.nix
# ./cy.nix
];
home.packages = with pkgs;
[
@ -24,6 +57,7 @@ in {
cargo-workspaces
clipboard-jh
curl
(callPackage cy {})
departure-mono
docker-client
dogedns