Files
nixos/darwin/baseline.nix
T

102 lines
2.3 KiB
Nix
Raw Normal View History

2024-02-09 14:33:51 -06:00
{
2025-06-10 14:28:46 -05:00
pkgs,
2026-05-19 02:37:25 -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
2026-04-30 17:18:36 -05:00
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;
};
};
}
];
2026-02-18 12:38:19 -06:00
};
2026-04-30 17:18:36 -05:00
builder = {
command = "${builderConfig.config.system.build.macos-builder-installer}/bin/create-builder";
2026-02-18 12:38:19 -06:00
serviceConfig = {
KeepAlive = true;
RunAtLoad = true;
2026-04-30 17:18:36 -05:00
StandardOutPath = "/var/log/builder-vm-${system}.log";
StandardErrorPath = "/var/log/builder-vm-${system}.stderr.log";
2026-02-18 12:38:19 -06:00
};
};
2026-02-17 16:10:35 -06:00
in
{
2025-06-10 14:56:59 -05:00
environment.systemPackages = with pkgs; [
2026-04-08 08:00:35 -05:00
agenix
2026-05-19 02:37:25 -05:00
pkgs'.hms
2025-06-10 14:56:59 -05:00
];
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-05-19 02:37:25 -05:00
#launchd.daemons.darwin-builder = builder;
2026-04-30 17:18:36 -05:00
nix = {
2026-05-19 02:37:25 -05:00
#buildMachines = [ { systems = ["aarch64-linux"]; sshUser = "builder"; sshKey = "/etc/nix/builder_ed25519"; hostName = "localhost:31022"; protocol = "ssh-ng"; }];
enable = true;
gc.interval.Hour = 3;
2026-05-19 02:37:25 -05:00
#linux-builder.enable = true;
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";
}