/dotfiles-nix

Primary LanguageLuaApache License 2.0Apache-2.0

Dotfiles powered by nix

Fork of kickstart.nix and heavily inspired by ALT-F4's dotfiles

Right now only have macos working on current computer, have to figure out more for work, etc

First steps

  • re-map caps lock to control
    • system settings -> keyboard -> keyboard shortcuts -> modifier keys
  • Put sound and bluetooth in top bar
    • control center, set both to Always Show in Menu Bar
  • Turn dock on hiding mode
  • Base developer tools:
xcode-select --install
  • Install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install with nix

NOTE: probably have to restart shell between a lot of the steps

Macos

  1. Install nixpkgs with official script:
sh <(curl -L https://nixos.org/nix/install)
  1. Install nix-darwin with official steps:
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
  1. Answer the following with y to edit your default configuration.nix file:
Would you like to edit the default configuration.nix before starting? [y/n] y
  1. Add the following to configuration.nix to enable nix-command and flakes features:
nix.settings.experimental-features = [ "nix-command" "flakes" ];

** NOTE** CTRL-O to save in pico

  1. Answer the following with y to setup <darwin> in nix-channel (though it won't be used):
Would you like to manage <darwin> with nix-channel? [y/n] y

Setup Terminal

  • Open Applications folder and open Alacritty
    • Have to do this because of mac security warnings
  • start fish shell
/run/current-system/sw/bin/fish
  • Link multiple programs home directory configs with:
just stow

Post nix & friends install:

  • 1password ssh agent setup
  • Brave
    • Add 1password, Dark Reader, vimium extensions
    • Import bookmarks (If backup?)
    • Set defaut search to duckduckgo
    • in brave with vimium installed, add this custom keymapping:
    map gp togglePinTab
    
    • Sign in Github
  • github cli login:
gh auth login

This should work post login:

gh auth status
  • remove and redownload dotfiles with ssh instead of https
  • pyenv, tfenv, pkenv version installs
  • Brave
    • Add 1password, Dark Reader, vimium extensions
    • Import bookmarks (If backup?)
    • Set defaut search to duckduckgo
    • in brave with vimium installed, add this custom keymapping:
    map gp togglePinTab
    
  • install rust tools:
rustup install stable
rustup component add rust-analyzer
  • final touches with ansible for directories and running some updates on repos...
just ansible-final-touches