Skip to content

Yet another dotfiles repository sliding into your tabs!

Notifications You must be signed in to change notification settings

frealmyr/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS

dotfiles

  • Root of this repository is the root of my home directory.
    • This is done using a bare git repository, which sets the working directory to the home folder, and git directory to ~/.dotfiles.
    • Using showUntrackedFiles=false, only tracked files will be visible in git commands for the dotfiles.
  • A flake for nix-darwin is placed under ~/nix-config.
    • This is used for configuring my MacOS system, homebrew and nixpkgs.
    • home-manager was too blackbox for my taste, as I prefer to edit my dotfiles directly.
Quick Start
  1. Install git the "apple-way".
xcode-select --install
  1. Install Nix using the determinate system installer.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
  1. Clone this repository to root of home directory.
git clone --bare https://github.com/frealmyr/dotfiles.git $HOME/.dotfiles/

alias dtf='git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" "$@"'
dtf config status.showUntrackedFiles no
dtf status
  1. Build and use the flake for nix-darwin.
nix run nix-darwin -- switch --flake ~/nix-config
  1. Reboot for good measure.
How to iterate?

Dotfiles can be added to git using a alias:

alias dtf='git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" "$@"'
dtf status
dtf add ~/.config/something.conf
dtf commit -m "punny msg"
dtf push -u origin macos

Changes made to Nix-darwin flake, can be rolled out using this command:

darwin-rebuild switch --flake ~/nix-config

About

Yet another dotfiles repository sliding into your tabs!

Topics

Resources

Stars

Watchers

Forks