Skip to content

NamesCode/.Dotfiles

Repository files navigation

Dotfiles

Dotfiles screenshot on macOS

Usage

Linux

Install Nix:

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

Then ¯_(ツ)_/¯

macOS

Install Xcode:

xcode-select --install

Install Brew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Nix:

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

Then run:

git clone https://github.com/NamesCode/.Dotfiles.git
cd ./.Dotfiles
echo '{ configs = configs/macos.nix; username = "'$(whoami)'"; }' > machine.nix
git add machine.nix
nix --extra-experimental-features nix-command --extra-experimental-features flakes build .\#darwinConfigurations.NamesM2.system
./result/sw/bin/darwin-rebuild switch --flake .#NamesM2

To build again in future. CD into the directory and run:

git pull
nix build .\#darwinConfigurations.NamesM2.system
./result/sw/bin/darwin-rebuild switch --flake .#NamesM2

Credits

Wonderful people who helped me even get this in Nix: