nix config
Flake lock file updates:
• Updated input 'home-manager/nixpkgs':
'github:NixOS/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
→ 'github:NixOS/nixpkgs/52ec9ac3b12395ad677e8b62106f0b98c1f8569d' (2024-07-28)
• Updated input 'nixpkgs-unstable':
'github:nixos/nixpkgs/d04953086551086b44b6f3c6b7eeb26294f207da' (2024-08-02)
→ 'github:nixos/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
• Updated input 'pre-commit-hooks':
'github:cachix/pre-commit-hooks.nix/f451c19376071a90d8c58ab1a953c6e9840527fd' (2024-07-15)
→ 'github:cachix/pre-commit-hooks.nix/06939f6b7ec4d4f465bf3132a05367cccbbf64da' (2024-08-05)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/eb34eb588132d653e4c4925d862f1e5a227cc2ab' (2024-07-27)
→ 'github:Mic92/sops-nix/8ae477955dfd9cbf5fa4eb82a8db8ddbb94e79d9' (2024-08-05)
|
||
|---|---|---|
| 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.