Kickstart your Nix environment.
- Familiarity with terminal commands.
- An account on GitHub for forking the repository.
- GitHub CLI (
gh
) installed for some commands.
Choose the appropriate setup instructions based on your operating system.
- Install
nixpkgs
with official script:
sh <(curl -L https://nixos.org/nix/install)
- Install
nix-darwin
with official steps:
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
- Answer the following with
y
to edit your defaultconfiguration.nix
file:
Would you like to edit the default configuration.nix before starting? [y/n] y
- Add the following to
configuration.nix
to enablenix-command
andflakes
features:
nix.settings.experimental-features = [ "nix-command" "flakes" ];
- Answer the following with
y
to setup<darwin>
innix-channel
(though it won't be used):
Would you like to manage <darwin> with nix-channel? [y/n] y
- Fork this repository to create your own flake kickstart.
Note This can be done in the Github UI at: https://github.com/ALT-F4-LLC/kickstart.nix
gh repo fork ALT-F4-LLC/kickstart.nix
- Clone your new fork locally to customize:
Note If the following command does not work revist steps 1 & 2.
nix run nixpkgs#git clone https://github.com/<username>/kickstart.nix
- Update the following value(s) in
flake.nix
configuration:
let
username = "<insert-username>"; # replace
in
- Switch to
kickstart.nix
environment for your system with flake configuration:
darwin-rebuild switch --flake ".#darwin-aarch64" # for M1/M2 Chipsets
darwin-rebuild switch --flake ".#darwin-x86_64" # for Intel or AMD Chipsets
- Add the following to
/etc/nixos/configuration.nix
to enablenix-command
andflakes
features:
nix.settings.experimental-features = [ "nix-command" "flakes" ];
- Update you system to reflect the changes:
nixos-rebuild switch
- Fork this repository to create your own flake kickstart.
Note This can be done in the Github UI at: https://github.com/ALT-F4-LLC/kickstart.nix
gh repo fork ALT-F4-LLC/kickstart.nix
- Clone your new fork locally to customize:
Note If the following command does not work revist steps 1 & 2.
nix run nixpkgs#git clone https://github.com/<username>/kickstart.nix
- Update the following value(s) in
flake.nix
configuration:
let
username = "<insert-username>"; # replace
in
- Switch to
kickstart.nix
environment for your system with flake configuration:
nixos-rebuild switch --flake ".#nixos-aarch64" # for ARM Chipsets
nixos-rebuild switch --flake ".#nixos-x86_64" # for Intel or AMD Chipsets
You can further tailor your Nix environment through configurations.
nix-darwin
system options exist in./system/darwin.nix
home-manager
system options exist in./system/darwin.nix
Important The default user password can be found and updated in
./system/nixos.nix
.
nixos
system hardware options exist in./system/nixos-hardware-configuration.nix
nixos
system options exist in./system/nixos.nix
home-manager
system options exist in./module/home-manager.nix
nix
system options exist in./module/configuration.nix
home-manager
user options exist in./module/home-manager.nix