Skip to content

nix based configuration

Notifications You must be signed in to change notification settings

thekorn/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

nix based configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published