home/darwin.nix

37 lines
768 B
Nix
Raw Normal View History

{ system, pkgs, ... }:
let alacritty = import ./alacritty/alacritty.nix pkgs;
in
{
nixpkgs.hostPlatform = system;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs ; [
alacritty.package
binutils
coreutils
home-manager
];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
nix.extraOptions = ''
extra-platforms = x86_64-darwin aarch64-darwin
max-jobs = 8
cores = 4
'';
}