No description
reo101
51a37c25f9
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/aef9a509db64a081186af2dc185654d78dc8e344' (2024-01-03) → 'github:nix-community/disko/f0a3425a7b173701922e7959d8bfb136ef53aa54' (2024-01-08) • Updated input 'neovim-nightly-overlay': 'github:nix-community/neovim-nightly-overlay/915479ceaaed1ddf9379706da575d0d2bf7a48cf' (2024-01-07) → 'github:nix-community/neovim-nightly-overlay/688360dd650feff8fef1d5a539eede840ec07d14' (2024-01-08) • Updated input 'neovim-nightly-overlay/neovim-flake': 'github:neovim/neovim/9a2c98087b90e5306579ab2149a6192ac075df6b?dir=contrib' (2024-01-06) → 'github:neovim/neovim/367e52cc79a786bbee4456b30f9ec5db7e28d6a5?dir=contrib' (2024-01-07) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/bd645e8668ec6612439a9ee7e71f7eac4099d4f6' (2024-01-02) → 'github:nixos/nixpkgs/46ae0210ce163b3cba6c7da08840c1d63de9c701' (2024-01-06) • Updated input 'nur': 'github:nix-community/NUR/50c8484371ff46d77678e88c1f78cc5495d7190d' (2024-01-07) → 'github:nix-community/NUR/f53bd4e7be4a0511d74f4c9b977eda365af5cce2' (2024-01-08) • Updated input 'zig-overlay': 'github:mitchellh/zig-overlay/112cfb72e47cb85d17fc8075a4d70ab56964453d' (2024-01-06) → 'github:mitchellh/zig-overlay/5cf2374c87cbe48139d1571360dcd7dd4807ef1c' (2024-01-08) |
||
---|---|---|
.github/workflows | ||
apps | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
secrets | ||
shells | ||
templates | ||
util | ||
.envrc | ||
.gitignore | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
nixpkgs.nix | ||
README.md | ||
shell.nix |
Based on nix-starter-configs
Secrets
# To put `agenix` and friends in `$PATH`
nix develop
cd secrets
Make new key
rage-keygen -o key
Edit secret
agenix -i key -e sub/dir/secret_file.age
Rekey all secrets
agenix -i key --rekey
NixOS setup
# Initial setup
nix run nixpkgs#nixos-anywhere -- --flake .#${HOSTNAME} --build-on-remote --ssh-port 22 root@${HOSTNAME} --no-reboott
# Deploy
deploy .#${HOSTNAME} --skip-checks
Mac (silicon) setup
# 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)
csrutil enable --without fs --without debug --without nvram