Last active
May 26, 2020 16:13
-
-
Save dansteeves68/3c2ea9dc3f1ebe64cc746a0835a173d6 to your computer and use it in GitHub Desktop.
A nix-darwin configuration file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
environment.systemPackages = | |
[ | |
pkgs.awscli | |
pkgs.csvkit | |
pkgs.direnv | |
pkgs.git | |
pkgs.gnupg | |
pkgs.jdk | |
pkgs.jq | |
pkgs.mercurial | |
pkgs.nix-bash-completions | |
pkgs.nodejs | |
pkgs.nodePackages.node2nix | |
pkgs.shellcheck | |
pkgs.telnet | |
]; | |
# Auto upgrade nix package and the daemon service. | |
services.nix-daemon.enable = true; | |
nix.package = pkgs.nix; | |
# Create /etc/bashrc that loads the nix-darwin environment. | |
programs.bash.enable = true; | |
programs.bash.enableCompletion = true; | |
programs.vim.enable = true; | |
programs.vim.enableSensible = true; | |
programs.vim.plugins = [ { names = [ "vim-nix" ] ; } ]; | |
# Used for backwards compatibility, please read the changelog before changing. | |
# $ darwin-rebuild changelog | |
system.stateVersion = 4; | |
# You should generally set this to the total number of logical cores in your system. | |
# $ sysctl -n hw.ncpu | |
nix.maxJobs = 1; | |
nix.buildCores = 1; | |
# MY STUFF | |
nix.binaryCaches = [ "s3://logicblox-cache" ]; | |
nix.trustedUsers = [ "dan" ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment