Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.17 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.17 KB

config using nix and flake

This is the config for my machines.

prerequisits

  • git
  • homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • clone this repository
$ git clone https://github.com/thekorn/nix-config.git .config/nix
  • install nix
$ sh <(curl -L https://nixos.org/nix/install) 
$ cd .config/nix
$ nix build .#darwinConfigurations.demoVM.system --extra-experimental-features "nix-command flakes"

# the plan is to now run this to install nix-darwin with our configuration
# ./result/sw/bin/darwin-rebuild switch --flake .#demoVM # this will fail as we first have to do the following lines

$ printf 'run\tprivate/var/run\n' | sudo tee -a /etc/synthetic.conf
$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t

# now we can finally darwin-rebuild
$ ./result/sw/bin/darwin-rebuild switch --flake .#demoVM

reference