This is my ever-evolving dotfiles repository, used to manage my desktop workstation, a MacBook Pro, and any Linux devbox capable of running Nix. This repository is constantly improved or changed in some way. It follows a structure to keep related configurations together, but not too much to reduce complexity.
nix develop
# NixOS rebuilds (hostname is autodetected)
nh os switch
# HomeManager rebuilds (hostname & username is autodetected)
nh home switch
# Build with hostname set
nh os build --hostname k3s-m0
# Build nixos-installer iso
nix build .#nixosConfigurations.iso.config.system.build.isoImage
# Update flake
nix flake update
# Format
treefmt --tree-root=.
💽 Disko
Disko is used to provision disks, it creates automatically the filsystems
configuration.
# Run disko from an installer
sudo nix run github:nix-community/disko --no-write-lock-file -- --mode zap_create_mount ./hosts/zion/disko.nix
# After this nixos can be installed
sudo nixos-install --flake .#zion