home/darwin.nix

32 lines
686 B
Nix
Raw Normal View History

{ system, pkgs, ... }:
{
nixpkgs.hostPlatform = system;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs ; [
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
'';
}