Skip to content

elkozmon/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick start

First change the settings in globals.nix.

MacOS

Install Determinate Nix from determinate.systems.1

For initial setup use the following:

# using flake from github
sudo nix run nix-darwin/nix-darwin-25.11#darwin-rebuild -- switch --flake "git+ssh://git@github.com/elkozmon/nix-config?ref=main#macbook"

# using local flake
sudo nix run nix-darwin/nix-darwin-25.11#darwin-rebuild -- switch --flake .#macbook

I recommend rebooting the machine after that.2

Then once nix-darwin is installed you may use the darwin-rebuild command:

# using flake from github
sudo darwin-rebuild switch --flake "git+ssh://git@github.com/elkozmon/nix-config?ref=main#macbook"

# using local flake
sudo darwin-rebuild switch --flake .#macbook

To generate SSH keys run:

nix run .#create-keys

Footnotes

  1. This flake configures nix-darwin for Determinate Nix. If you choose another distro, update the nix-darwin config.

  2. Some settings take effect only after a reboot.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors