dotfiles/.config/nix
2024-07-16 11:34:23 +07:00
..
darwin chore(nix): Only enable browserpass for chrome (arc) and brave 2024-07-16 11:34:23 +07:00
.gitignore fix: Fix gitignore 2024-07-11 05:52:16 +07:00
flake.lock refactor(nix): Use home-manager 2024-07-13 09:09:20 +07:00
flake.nix refactor(nix): Make duti only install on macOS 2024-07-16 10:27:57 +07:00
nix.conf chore: Initial nix-darwin darwin-configuration -> flake migration 2024-07-11 04:12:01 +07:00
README.md docs: Add documentation for nix 2024-07-11 06:36:19 +07:00

null2264's Nix Setup

You need to install Nix before following this guide: sh <(curl -L https://nixos.org/nix/install) and symlink this dir to ~/.config/nix

Setup

Initial

This is done because nix-darwin commands is not yet added to PATH, should be a one-time thing

nix-env -iA nixpkgs.git
# Run `sudo chown $USER /nix/var/nix/profiles/per-user/$USER` if that returns error

nix build .#darwinConfigurations.<host>.system

./result/sw/bin/darwin-rebuild switch --flake .#<host>
# or
nix run nix-darwin -- switch --flake .#<host>

Rebuild

After initial setup, you should now be able to use the command directly:

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