Files
nixos/darwin/baseline.nix
T

101 lines
2.4 KiB
Nix
Raw Normal View History

2024-02-09 14:33:51 -06:00
{
2026-01-20 10:51:39 -06:00
lib,
2025-06-10 14:28:46 -05:00
pkgs,
2026-01-20 10:51:39 -06:00
top,
2025-06-10 14:28:46 -05:00
...
}:
2026-01-20 10:51:39 -06:00
let
darwin-aarch-builder = top.nixunstable.lib.nixosSystem {
system = "aarch64-linux";
modules = [
"${top.nixunstable}/nixos/modules/profiles/nix-builder-vm.nix"
{ virtualisation.host.pkgs = import top.nixunstable { system = "aarch64-darwin"; }; }
];
};
darwin-x86-builder = top.nixunstable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${top.nixunstable}/nixos/modules/profiles/nix-builder-vm.nix"
{ virtualisation.host.pkgs = import top.nixunstable { system = "aarch64-darwin"; }; }
];
};
in {
2025-06-10 14:56:59 -05:00
environment.systemPackages = with pkgs; [
hms
];
2025-05-09 12:54:21 -05:00
fonts.packages = with pkgs; [
dejavu_fonts
nerd-fonts.hack
2025-05-09 12:54:21 -05:00
];
2026-01-20 10:51:39 -06:00
launchd.daemons.darwin-aarch-builder = {
command = "${darwin-x86-builder.config.system.build.macos-builder-installer}/bin/create-builder";
serviceConfig = {
KeepAlive = true;
RunAtLoad = true;
StandardOutPath = "/var/log/darwin-aarch-builder.log";
StandardErrorPath = "/var/log/darwin-aarch-builder.log";
};
};
nix = {
enable = true;
2026-01-20 10:51:39 -06:00
buildMachines = [{
hostName = "ssh-ng://builder@localhost";
system = "aarch64-linux";
maxJobs = 4;
supportedFeatures = ["kvm" "benchmarch" "big-parallel"];
}];
gc.interval.Hour = 3;
settings.auto-optimise-store = false; # Darwin bugs?
};
2025-05-09 11:18:52 -05:00
2025-05-09 12:54:21 -05:00
power.sleep = {
allowSleepByPowerButton = true;
computer = "never";
display = 30;
};
2025-05-09 11:18:52 -05:00
programs = {
zsh.enable = true;
bash.enable = true;
};
2025-05-09 12:54:21 -05:00
system = {
defaults = {
CustomSystemPreferences = {
".GlobalPreferences" = {
"com.apple.swipescrolldirection" = 0;
};
};
2025-05-09 12:54:21 -05:00
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
ShowExternalHardDrivesOnDesktop = true;
ShowMountedServersOnDesktop = true;
ShowPathbar = true;
ShowRemovableMediaOnDesktop = true;
ShowStatusBar = true;
};
LaunchServices.LSQuarantine = false;
menuExtraClock = {
Show24Hour = true;
ShowDate = 2;
2025-05-09 12:54:21 -05:00
};
screencapture = {
include-date = true;
2025-06-10 14:28:46 -05:00
location = "~/Photos/Screeneries";
2025-05-09 12:54:21 -05:00
};
trackpad = {
Dragging = false;
TrackpadRightClick = true;
};
};
startup.chime = false;
stateVersion = 6;
};
time.timeZone = "America/Chicago";
}