Skip to content

Declarative system configurations using nixOS, nix-darwin, and home-manager

License

Notifications You must be signed in to change notification settings

kclejeune/system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles: System Configuration with Nix

Build Status

Installing Nix Package Manager

Run the following to perform a multi-user installation for darwin or standard linux. This step is skipped on NixOS.

if [[ $(uname -s) == 'Darwin' ]]; then
    sh <(curl https://nixos.org/nix/install) --daemon --darwin-use-unencrypted-nix-store-volume
else
    sh <(curl https://nixos.org/nix/install) --daemon
fi

Cloning Dotfiles

Spawn a shell with yadm, clone the repository, and run the bootstrapping script:

nix-shell -p yadm --run "yadm clone --bootstrap https://github.com/kclejeune/dotfiles"

The bootstrap script will clone this repo, build the configuration, and install Homebrew for additional dependencies if we're in a macOS environment.

Installing Homebrew dependencies

The few leftover homebrew packages and brew casks are stored in ~/Brewfile. They can be installed using cd ~ && brew bundle.