Skip to content

bbenne10/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix configuration for a bunch of machines

Deploying

First: Clone the repo

Darwin

$ cd <repo clone root>
$ nix build ~/.config/darwin\#darwinConfigurations.cipher-4590
$ ./result/sw/bin/darwin-rebuild switch --flake .

After completing the above, darwin-rebuild will be in $PATH, so a simple darwin-rebuild switch --flake <path> will work fine.o

NixOS

$ nixos-rebuild switch --flake <repo clone root>

will work (if your hostname happens to be bennett-{server,laptop}).