Personal Nix configuration for macOS and NixOS.
AirPh0ryn: Apple Silicon macOS managed with nix-darwinNixPavilion: x86_64 NixOS
# 1. install nix
curl -sSfL https://artifacts.nixos.org/nix-installer | sh -s -- install
# 2. clone config
git clone https://github.com/ph0ryn/nixconfig.git ~/nixconfig
# 3. bootstrap nix-darwin
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/nixconfig#AirPh0ryn# 1. clone this repository
nix shell nixpkgs#git -c git clone https://github.com/ph0ryn/nixconfig.git ~/nixconfig
# 2. apply the configuration
sudo nixos-rebuild switch --flake ~/nixconfig#NixPavilionupdate
# all
nix flake update
# selected inputs
nix flake update nixpkgs
nix flake update home-manager
nix flake update nix-darwinswitch macOS
sudo darwin-rebuild switch --flake ~/nixconfig#AirPh0rynswitch NixOS
sudo nixos-rebuild switch --flake ~/nixconfig#NixPavilion