System Config Flakes

MacOS

Install

  1. Install Xcode Command Line Tools:

    xcode-select --install
  2. Install Nix using the official installer:

    sh <(curl -L https://nixos.org/nix/install) --daemon
  3. Install nix-darwin:

    nix run nix-darwin --extra-experimental-features 'nix-command flakes' -- switch --flake .#macbook
  4. Apply changes to your system:

    darwin-rebuild switch --flake .#macbook

DevShells

  1. initialize a flake from github.com/laermannjan/flake-templates

For example:

nix flake new -t github.com:laermannjan/flake-templates#python-pipenv

1Password

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

TODOs

  • macos options
  • outsource dotfiles, atleast neovim config into separate repo?
  • tmux config
  • use nix to supply lsps, etc instead of mason