My full system configuration for various devices and environments. Mostly undocumented, but I may add more notes over time.
https://github.com/DeterminateSystems/nix-installer
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
git clone https://github.com/lexun/system ~/.system
Change hostname to match device name in ~/.system/devices/default.nix
, then:
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.original
Apply the system configuration with nix-darwin:
nix --extra-experimental-features 'nix-command flakes' run nix-darwin -- switch --flake ~/.system
Finally, enable the 1password ssh agent and CLI integration in the 1password developer settings.
For Nix-powered coder instances, setup is simple:
nix run nixpkgs#cachix -- use lexun
nix run github:lexun/system#homeConfigurations.coder.activationPackage
To update Nix dependencies:
cd ~/.system && nix flake update
To apply changes to the configuration:
update