diff --git a/darwin.nix b/darwin.nix index a7d973d..891c043 100644 --- a/darwin.nix +++ b/darwin.nix @@ -54,6 +54,9 @@ "com.apple.mouse.tapBehavior" = 1; "com.apple.trackpad.scaling" = 0.875; }; + ".GlobalPreferences" = { + "com.apple.mouse.scaling" = 0.5; + }; trackpad = { Dragging = true; Clicking = true; @@ -87,7 +90,7 @@ homebrew = { enable = true; casks = (import ./cask.nix) ++ (lib.attrByPath [ "extras" "casks" ] [ ] host); - taps = []; + taps = [ ]; global = { autoUpdate = true; }; @@ -95,7 +98,7 @@ autoUpdate = true; upgrade = true; cleanup = "zap"; - extraFlags = ["--force" ]; + extraFlags = [ "--force" ]; }; }; } diff --git a/home/pkgs.nix b/home/pkgs.nix index bcb44bc..67efba4 100644 --- a/home/pkgs.nix +++ b/home/pkgs.nix @@ -11,6 +11,9 @@ with pkgs; posting opencode + # TUI + (callPackage ../pkgs/crtui.nix { }) + # NVim nvs lua diff --git a/pkgs/crtui.nix b/pkgs/crtui.nix new file mode 100644 index 0000000..347d1e9 --- /dev/null +++ b/pkgs/crtui.nix @@ -0,0 +1,45 @@ +{ + lib, + stdenv, + fetchzip, +}: +let + version = "0.4.1"; + plat = { + "aarch64-darwin" = "darwin_arm64"; + "x86_64-darwin" = "darwin_amd64"; + "aarch64-linux" = "linux_arm64"; + "x86_64-linux" = "linux_amd64"; + }; +in +stdenv.mkDerivation { + pname = "crtui"; + inherit version; + + src = fetchzip { + url = "https://github.com/ksckaan1/crtui/releases/download/v${version}/crtui_${version}_${ + plat.${stdenv.hostPlatform.system} + or (throw "crtui: unsupported platform ${stdenv.hostPlatform.system}") + }.tar.gz"; + hash = "sha256-Rue9l2dZR8J6+XCV4HGOvYywklDa9jq4I6IUlhmtTF8="; + stripRoot = false; # tarball has no single top-level dir + }; + + # Prebuilt binary: skip fixup so llvm-strip does not invalidate the + # ad-hoc Mach-O signature macOS arm64 requires. + dontFixup = true; + + installPhase = '' + runHook preInstall + install -Dm755 $src/crtui $out/bin/crtui + runHook postInstall + ''; + + meta = { + description = "Terminal-based container registry management tool"; + homepage = "https://github.com/ksckaan1/crtui"; + license = lib.licenses.mit; + mainProgram = "crtui"; + platforms = builtins.attrNames plat; + }; +}