This repository contains the Nix / NixOS configuration for all of my systems. Start from flakes.nix
(see Flakes).
To build,
# First, edit nixosConfigurations or darwinConfigurations in flake.nix to add
# your system's hostname
make
- NixOS Linux
- Install NixOS
- Hetzner dedicated from Linux Rescue system: serokell/nixos-install-scripts#1 (review)
- Digital Ocean: https://github.com/elitak/nixos-infect
- X1 Carbon: https://www.srid.ca/x1c7-install
- Clone this repo at
/etc/nixos
- Edit
flake.nix
and add your Linux's hostname in thenixosConfigurations
set. - Run
make
. That's it. Re-open your shell.
- Install NixOS
- macOS:
- Install Nix normally (multi-user)
- Install nix-darwin
- This will create a
~/.nixpkgs/darwin-configuration.nix
, but we do not need that.
- This will create a
- Clone this repo anywhere
- Edit
flake.nix
and add your Mac's hostname in thedarwinConfigurations
set. - Run
make
.1 That's it. Re-open your shell.
home
: home-manager confignixos
: nixos config (includes nix-darwin)systems
: top-level configuration.nix('ish) for various kinds of system
- To update NixOS (and other inputs) run
nix flake update
Footnotes
-
You might have to
rm -rf /etc/nix/nix.conf
, so our flake.nix can do its thing. ↩