darwin stuff

This commit is contained in:
charles@rumandcode.io 2026-05-27 10:06:40 -04:00
parent 27c930d6bb
commit 454dbfeab2

View file

@ -50,23 +50,28 @@ in {
"brave-browser" "brave-browser"
"qutebrowser" "qutebrowser"
"stremio" "stremio"
"firefox"
# work # work
"slack" "slack"
"tunnelblick" "tunnelblick"
"dbeaver-community" "dbeaver-community"
"claude" "claude"
"adobe-acrobat-reader"
# doom emacs # doom emacs
"font-symbols-only-nerd-font" "font-symbols-only-nerd-font"
# media
"inkscape"
"obs"
]; ];
}; };
nix = { nix = {
# Necessary for using flakes on this system. # Necessary for using flakes on this system.
settings.experimental-features = "nix-command flakes"; settings.experimental-features = "nix-command flakes";
extraOptions = '' extraOptions = ''
extra-platforms = x86_64-darwin aarm64-darwin extra-platforms = x86_64-darwin aarch64-darwin aarch64-linux
''; '';
gc = { gc = {
automatic = true; automatic = true;
@ -77,6 +82,31 @@ in {
}; };
options = "--delete-older-than 15d"; options = "--delete-older-than 15d";
}; };
linux-builder = {
enable = true;
};
distributedBuilds = true;
buildMachines = [
{
hostName = "server.local";
sshUser = "polen";
sshKey = "/Users/charles/.ssh/id_ed25519";
systems = [ "x86_64-linux" "aarch64-linux" ];
# optional but recommended:
maxJobs = 4; # how many concurrent builds to send
speedFactor = 1; # relative priority vs other builders
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
}
];
settings.builders-use-substitutes = true;
settings = {
extra-substituters = [ "s3://rc-nix-binary-cache?region=ca-central-1" ];
extra-trusted-public-keys = [ "rc-nix-cache:3nJzc2e0wK0zpTmiphHLYJWOMuKJ0Fj/TOF5ulUxr/Q=" ];
secret-key-files = [ "/Users/charles/.config/nix/rc-nix-cache-priv-key.pem" ];
};
}; };
# Create /etc/zshrc that loads the nix-darwin environment. # Create /etc/zshrc that loads the nix-darwin environment.