reo101/rix101
My NixOS, nix-on-droid and nix-darwin configs.
callPackage
) and dream2nix
packages extractionnixos
, nix-darwin
, nix-on-droid
, home-manager
and flake
modules extractionnixos
, nix-darwin
, nix-on-droid
and home-manager
configurations extraction./hosts/${config-type}/${system}/${hostname}/...
./modules/flake/configurations
for more info on what is extracted from those directories./modules/${config-type}/...
./modules/flake/modules
for more info on what is extracted from that directory./pkgs/...
./modules/flake/packages
for more info on what is extracted from that directory./overlays/...
./modules/flake/overlays
for more info on what is extracted from that directory./shells/...
./modules/flake/shells
for more info on what is extracted from that directorynix
(as of recently - lix
) together with some other useful tools for working with the repo (deploy-rs
, rage
, agenix-rekey
, etc.), see ./shells/default/default.nix
for more infoYou can see the overall topology of the hosts by running
nix build ".#topology"
And opening the resulting ./result/main.svg
and ./result/network.svg
Secrets are managed by agenix
and agenix-rekey
NOTE Secrets are defined by the hosts themselves,
agenix-rekey
just collects what secrets are referenced by them and lets you generate, edit and rekey them
# To put `rage`, `agenix-rekey` and friends in `$PATH`
nix develop
# Select from `fzf` menu
agenix edit
agenix rekey
generators
)agenix generate
# Initial setup
nix run nixpkgs#nixos-anywhere -- --flake ".#${HOSTNAME}" --build-on-remote --ssh-port 22 "root@${HOSTNAME}" --no-reboot
# Deploy
deploy ".#${HOSTNAME}" --skip-checks
# Setup system tools
softwareupdate --install-rosetta --agree-to-license
sudo xcodebuild -license
# Install nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# Apply configuration
git clone https://www.github.com/reo101/rix101 ~/.config/rix101
cd ~/.config/rix101
nix build ".#darwinConfigurations.${HOSTNAME}.system"
./result/sw/bin/darwin-rebuild switch --flake .
# System setup for `yabai` (in system recovery)
# NOTE: <https://support.apple.com/guide/mac-help/macos-recovery-a-mac-apple-silicon-mchl82829c17/mac>
csrutil enable --without fs --without debug --without nvram
Misterio77
for his amazing nix-starter-configs
, on which this was based originallydisko
for making disk partioning a breezeoddlama
for creating the amazing agenix-rekey
and nix-topology
projects