Skip to content

Latest commit

 

History

History
89 lines (66 loc) · 1.8 KB

README.org

File metadata and controls

89 lines (66 loc) · 1.8 KB

WIP

NOTE: All keybinding of this config is set for Dvorak keyboard layout.

Require

Install nix:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Clone this repo:

git clone https://github.com/mrunhap/dotfiles.git ~/.setup

Or:

nix run nixpkgs#git clone https://github.com/mrunhap/dotfiles.git ~/.setup

NixOS

Install:

nixos-install --flake .#<host>

Rebuild:

sudo nixos-rebuild switch --flake .#<host>

MacOS

Type git to ensure you have xcode developer tools installed.

Install nix:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Install homebrew:

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

For Apple Sillison Macs, install Rosetta:

softwareupdate --install-rosetta --agree-to-license

For the first time:

nix build .#darwinConfigurations.<host>.system
./result/sw/bin/darwin-rebuild switch --flake .#<host>

Then use darwin-rebuild to rebuild and activate:

darwin-rebuild switch --flake .#<host>

Non-NixOS Linux

For first time:

nix build .#homeConfigurations.<host>.activationPackage
./result/activate

Then use home-manager to rebuild and activate:

home-manager switch --flake .#<host>

Tips

Enable color for pacman

Uncomment Color in /etc/pacman.conf.

No audio on thinkpad x1carbon

sudo pacman -S fwupd sof-firmware

Delete Nixos boot generations

Delete system-* in /nix/var/nix/profiles and rebuild the system.