Steps to apply this repo:
- Install Nix:
sh <(curl -L https://nixos.org/nix/install) - Enable flakes by creating and updating
~/.config/nix/nix.conffile withexperimental-features = nix-command flakesline. - Build this flake:
nix build github:arapov/evolution/main#darwinConfigurations.heimdall.system - And apply it:
./result/sw/bin/darwin-rebuild switch --flake github:arapov/evolution/main
From now on you can use darwin-rebuild switch command to install and/or update packages and system's configuration.
In order to update packages to a recent versions nix flake update --commit-lock-file command is useful. :-)
Configuration in this repo is using nix-community flakes, thus enabling and using Cachix will save you some build time. The command to enable it is cachix use nix-community.
$ nix build .#darwinConfigurations.heimdall.system --json \
| jq -r '.[].outputs | to_entries[].value' \
| cachix push arapov