Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.06 KB

README.md

File metadata and controls

68 lines (51 loc) · 1.06 KB

dotfiles and configurations for ama

Installation

nix run github:gw31415/dotfiles

Note

This is just running the dot package. The dot package is a helper command to manage gw31415/dotfiles.

dot Usage

Switching (update/upgrade) Environments

  • Shortcut for dot --home, or install github:gw31415/dotfiles.

     dot
  • Switch env of home-manager

     dot --home # or `dot -h`
  • Switch env of nix-darwin

     dot --darwin # or `dot -d`
  • Switch all envs

     dot --all # or `dot -a`
  • Fetch & update the flake.lock

     dot --update # or `dot -u`

Utilities

  • Open the dir-changed devShell of the dotfiles and run <cmd>. Without <cmd>, it will open $SHELL.

     dot sh <cmd>
  • Nix garbage-collection

     dot gc
  • Nix garbage-collection (aggressive)

     dot gc --aggressive

Examples

  • Update all environments after updating the flake.lock

     dot -ua
  • Show git status of the current dotfiles

     dot sh git status