dotfiles/nixos
DannyDannyDanny cd7658f452 doc: SSH key management and secrets 📝
- Updated AGENTS.md to specify one key per purpose for SSH access, including naming conventions and configuration tips.
- Revised README.md to streamline the roadmap and link to SSH and secrets documentation.
- Created docs/ssh-and-secrets.md to outline the strategy for managing SSH keys and secrets in a public repo.
- Refined TODO.md to reflect the new approach for secrets and server configuration tasks.
2026-03-01 11:55:44 +01:00
..
home/danny refactor: rename git cleanup alias to 'tidy' in fish and home.nix configurations 🎨 2026-02-25 12:57:41 +01:00
hosts doc: server git pull without PATH, keep flakes bootstrap config in repo 2026-02-28 12:15:38 +01:00
fish.nix refactor: rename git cleanup alias to 'tidy' in fish and home.nix configurations 🎨 2026-02-25 12:57:41 +01:00
flake.lock feat: add zen-browser support to home-manager and Nix configuration 2026-02-19 16:00:11 +01:00
flake.nix nixos-server: flake, hardware, readme bootstrap, server-quickstart, TODO 2026-02-27 23:18:57 +01:00
hardware-configuration.nix merge: hardware config from main 2025-07-27 16:06:02 +02:00
neovim.nix fix: remove bad cmd go=a 🐛🔥 2026-01-11 15:10:29 +01:00
ollama.nix feat: add ollama 💩 2025-10-26 19:48:17 +01:00
readme.md doc: SSH key management and secrets 📝 2026-03-01 11:55:44 +01:00
server-configuration-with-flakes.nix doc: server git pull without PATH, keep flakes bootstrap config in repo 2026-02-28 12:15:38 +01:00
server-install-configuration.nix nixos-server: flake, hardware, readme bootstrap, server-quickstart, TODO 2026-02-27 23:18:57 +01:00
tmux.nix merge: tmux.nix from wsl branch 2025-07-27 14:52:35 +02:00
uxplay.nix merge: uxplay from main 2025-07-27 16:08:35 +02:00
wsl.conf chore: remove wsl.conf 2025-09-09 15:24:51 +02:00

NixOS flake

Rebuild from dotfiles dir:

sudo nixos-rebuild switch --flake ~/dotfiles/nixos#macbookair
# or #wsl
# macOS: cd ~/dotfiles/nixos && darwin-rebuild switch --flake .

Server (nixos-server)

One-time bootstrap (no git until first rebuild):

nix run --extra-experimental-features "nix-command flakes" nixpkgs#git -- clone https://github.com/DannyDannyDanny/dotfiles.git /tmp/dotfiles
sudo mv /tmp/dotfiles /etc/dotfiles
sudo nixos-rebuild switch --flake /etc/dotfiles/nixos#nixos-server --option accept-flake-config true

If the daemon doesnt have flakes: copy server-configuration-with-flakes.nix to /etc/nixos/configuration.nix, run sudo nixos-rebuild switch, then build and switch to the flake (see server-quickstart.md for SSH keys).

SSH keys (not in repo): scp ~/.ssh/*.pub danny@server:/tmp/, then on server mkdir -p ~/.ssh; cat /tmp/*.pub >> ~/.ssh/authorized_keys. See docs/ssh-and-secrets.md.

Timer: every 15 min the server pulls and rebuilds when main changes. Config: hosts/nixos-server.nix, hosts/nixos-server-hardware.nix.

No git in PATH: sudo nix run nixpkgs#git -- -C /etc/dotfiles pull origin main.