Skip to content

flaeppe/dotfiles

Repository files navigation

dotfiles

Install nix

sh <(curl -L https://nixos.org/nix/install)

Enable nix experimental features

mkdir -p ~/.config/nix/
echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf

Configure dotfiles by running

nix run home-manager -- switch --no-write-lock-file --refresh --flake github:flaeppe/dotfiles

Setting fish as default shell on macOS (optional as kitty terminal sets fish as default shell)

  1. Append entry for home-manager managed fish binary to /etc/shells
  2. Set default shell with chsh -s ~/.nix-profile/bin/fish

Update packages by running

nix flake update
nix run home-manager -- switch --refresh --flake path/to/repo

Add in an .envrc for local development. There's a devShell declared in flake.nix

use flake

export VIRTUAL_ENV=.venv
layout python

Secrets

Secrets are managed by pass (GPG-encrypted, git-synced). The opencode wrapper reads secrets from pass at launch. Home Manager activation scripts write ~/.sentryclirc and opencode auth files from pass on home-manager switch.

About

My dotfiles

Topics

Resources

Stars

Watchers

Forks

Contributors