nix config
Flake lock file updates:
• Updated input 'home-manager':
'github:nix-community/home-manager/afc892db74d65042031a093adb6010c4c3378422' (2024-08-02)
→ 'github:nix-community/home-manager/e1391fb22e18a36f57e6999c7a9f966dc80ac073' (2024-07-03)
|
||
|---|---|---|
| bin | ||
| home-manager | ||
| nixos | ||
| secrets | ||
| .envrc | ||
| .gitignore | ||
| .sops.yaml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| treefmt.nix | ||
Nix config including NixOS, home-manager and infrastructure using deploy-rs
Starting
nix develop "github:iofq/nix"
Nixos
Building for local machine
nixos-rebuild switch --flake .#name
Building remote hosts
nixos-rebuild switch --flake .#name --target-host host
Building remote hosts using deploy-rs
nix develop
deploy .
Home-manager
home-manager switch --flake "github:iofq/nix#t14"
Developing
direnv allow
nix fmt
Direnv will also set up git pre-commit hooks to format the repo automatically.