feat: base darwin config

This commit is contained in:
2026-02-11 16:57:37 -08:00
parent 4514e4223b
commit de6f3ee6ba
3 changed files with 34 additions and 5 deletions

View File

@@ -45,5 +45,6 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
colima colima
docker docker
keycastr
]; ];
} }

View File

@@ -18,12 +18,12 @@ let
in in
stdenvNoCC.mkDerivation (finalAttrs: { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "opencode"; pname = "opencode";
version = "1.1.51"; version = "1.1.53";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "anomalyco"; owner = "anomalyco";
repo = "opencode"; repo = "opencode";
tag = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
hash = "sha256-i9KR5n6bT0p7xLErlgaq2TAj/B7ZbLd9a+4Czg8q/cI="; hash = "sha256-VddWpvtoDJlbbesJL6VlP99/NJqkHbN8Rdv1XccNRZM=";
}; };
node_modules = stdenvNoCC.mkDerivation { node_modules = stdenvNoCC.mkDerivation {
@@ -74,9 +74,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
outputHash = outputHash =
if stdenvNoCC.hostPlatform.isDarwin then if stdenvNoCC.hostPlatform.isDarwin then
"sha256-DChoXNWJFlyyAqeiR06BQMLITwVQXy0wvQs58l0d1Xc=" "sha256-m0vAVv8zS8RgU6YpEVbf6l6vilkU+CP/PtAD6U5g/F8="
else else
"sha256-tPDRjMcfGWC7TJaQHa3mt7PsZ6Gr5l4lMUOSXoozqoU="; "sha256-S69x2yRym+h0hbc6wHFOeTxYi9nbBgEJGaZKhUbmdxI=";
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHashMode = "recursive"; outputHashMode = "recursive";
}; };
@@ -93,6 +93,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
./root_fix.patch # https://github.com/anomalyco/opencode/pull/7691 ./root_fix.patch # https://github.com/anomalyco/opencode/pull/7691
]; ];
postPatch = ''
# NOTE: Relax Bun version check to be a warning instead of an error
substituteInPlace packages/script/src/index.ts \
--replace-fail 'throw new Error(`This script requires bun@''${expectedBunVersionRange}' \
'console.warn(`Warning: This script requires bun@''${expectedBunVersionRange}'
'';
configurePhase = '' configurePhase = ''
runHook preConfigure runHook preConfigure

View File

@@ -3,7 +3,7 @@
{ {
system.stateVersion = 6; system.stateVersion = 6;
# System Config # Determinate Config
determinateNix = { determinateNix = {
enable = true; enable = true;
nixosVmBasedLinuxBuilder = { nixosVmBasedLinuxBuilder = {
@@ -12,5 +12,26 @@
}; };
}; };
# Three Finger Drag
system.primaryUser = "evanreichard";
system.defaults = {
trackpad = {
TrackpadThreeFingerDrag = true;
};
dock = {
autohide = true;
};
menuExtraClock = {
Show24Hour = true;
ShowSeconds = true;
};
NSGlobalDomain = {
KeyRepeat = 2;
};
WindowManager = {
HideDesktop = true;
};
};
reichard = { }; reichard = { };
} }