Files
nixos/darwin/baseline.nix
Greg Hellings 9eb9fdec6c
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
Update flake.lock / update-flake-lock (push) Failing after 3s
Update manifest chart versions / update-manifests (push) Successful in 4s
chore: try allowing nix darwin builds
2026-04-30 17:18:36 -05:00

100 lines
2.2 KiB
Nix

{
pkgs,
top,
...
}:
let
system = builtins.replaceStrings [ "darwin" ] [ "linux" ] pkgs.stdenv.hostPlatform.system;
builderConfig = top.nixunstable.lib.nixosSystem {
inherit system;
modules = [
"${top.nixunstable}/nixos/modules/profiles/nix-builder-vm.nix"
{
virtualisation = {
host.pkgs = pkgs;
darwin-builder = {
workingDirectory = "/var/lib/darwin-builder";
hostPort = 22;
};
};
}
];
};
builder = {
command = "${builderConfig.config.system.build.macos-builder-installer}/bin/create-builder";
serviceConfig = {
KeepAlive = true;
RunAtLoad = true;
StandardOutPath = "/var/log/builder-vm-${system}.log";
StandardErrorPath = "/var/log/builder-vm-${system}.stderr.log";
};
};
in
{
environment.systemPackages = with pkgs; [
agenix
hms
];
fonts.packages = with pkgs; [
dejavu_fonts
nerd-fonts.hack
];
launchd.daemons.darwin-builder = builder;
nix = {
enable = true;
gc.interval.Hour = 3;
linux-builder.enable = true;
settings.auto-optimise-store = false; # Darwin bugs?
};
power.sleep = {
allowSleepByPowerButton = true;
computer = "never";
display = 30;
};
programs = {
zsh.enable = true;
bash.enable = true;
};
system = {
defaults = {
CustomSystemPreferences = {
".GlobalPreferences" = {
"com.apple.swipescrolldirection" = 0;
};
};
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
ShowExternalHardDrivesOnDesktop = true;
ShowMountedServersOnDesktop = true;
ShowPathbar = true;
ShowRemovableMediaOnDesktop = true;
ShowStatusBar = true;
};
LaunchServices.LSQuarantine = false;
menuExtraClock = {
Show24Hour = true;
ShowDate = 2;
};
screencapture = {
include-date = true;
location = "~/Photos/Screeneries";
};
trackpad = {
Dragging = false;
TrackpadRightClick = true;
};
};
startup.chime = false;
stateVersion = 6;
};
time.timeZone = "America/Chicago";
}