-
Install Xcode Command Line Tools:
xcode-select --install
-
Install Nix using the official installer:
sh <(curl -L https://nixos.org/nix/install) --daemon
-
Install
nix-darwin
:nix run nix-darwin --extra-experimental-features 'nix-command flakes' -- switch --flake .#macbook
-
Apply changes to your system:
darwin-rebuild switch --flake .#macbook
- initialize a flake from
github.com/laermannjan/flake-templates
For example:
nix flake new -t github.com:laermannjan/flake-templates#python-pipenv
The flakes will install 1Password and the 1Password-cli. SSH-keys and other credentials (e.g. AWS Access Tokens, see direnv config) are loaded via the op
cli.
Remember to install repsective plugins (couldn't figure out a way to do this via nix, yet)
op plugin init aws
op plugin init glab
op plugin init gh
- macos options
- outsource dotfiles, atleast neovim config into separate repo?
- tmux config
- use nix to supply lsps, etc instead of mason