Skip to content

aneziac/dotfiles

Repository files navigation

Dotfiles

Current machines:

  • Early 2020 Macbook Air
  • 2022 HP Omen (dual booting Mint and Arch)

Setup steps on new machine:

  1. Copy age key from existing machine via:

    • hostname -I - identify IP address on target machine
    • mkdir -p ~/.config/chezmoi on target machine
    • scp ~/.config/chezmoi/key.txt user@target-machine-ip:~/.config/chezmoi/key.txt
  2. Clone dotfiles with

    sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply aneziac -b $HOME/.local/bin
  3. cd into nix-config and run

    sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon

    (remove --daemon for MacOS) to install nix, then

    nix run home-manager/master -- switch --flake .#mint --impure

    Note after this initial setup, future runs can use just

    home-manager switch --flake .#mint --impure

    where in both cases replace mint with arch or macos as needed. This installs all base packages and sets up zsh.

  4. Now that you can decrypt the .ssh GH private key, apply and change the chezmoi remote to use ssh:

    chezmoi apply
    git remote set-url origin [email protected]:aneziac/dotfiles.git
  5. Add hostess to sudoers (to prevent distractions)

    echo "$USER ALL=(ALL) NOPASSWD: $(which hostess)" | sudo tee /etc/sudoers.d/hostess

TODO:

  • automatic keyd setup; also should be managed via nix

About

My Linux and MacOS dotfiles, with nix home manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published