Skip to content

a sample of a darwin system config with nix flakes

License

Notifications You must be signed in to change notification settings

arapov/evolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evolution - a sample of a darwin system config with nix flakes

Steps to apply this repo:

  1. Install Nix: sh <(curl -L https://nixos.org/nix/install)
  2. Enable flakes by creating and updating ~/.config/nix/nix.conf file with experimental-features = nix-command flakes line.
  3. Build this flake: nix build github:arapov/evolution/main#darwinConfigurations.heimdall.system
  4. 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.

cachix

$ nix build .#darwinConfigurations.heimdall.system --json \
  | jq -r '.[].outputs | to_entries[].value' \
  | cachix push arapov

About

a sample of a darwin system config with nix flakes

Topics

Resources

License

Stars

Watchers

Forks

Languages