nixos/README.md
2023-03-10 21:41:41 +01:00

1.7 KiB

nixos-config built with nix

This repository holds my NixOS configuration. It is fully reproducible, flakes based, and position-independent, meaning there is no moving around of configuration.nix.

Deployment is done using deploy-rs, see usage. Secret are managed using sops-nix. For formatting pre-commit-hooks is used. For image generation nixos-generators is used.

structure

.
├── images       # custom image generations
├── machines     # machine definitions
├── modules      # own nix-options, to modularize services/hardware/...
├── overlays     # overlays
├── pkgs         # own packages, which are not available in nixpkgs
└── profiles     # summarize module collections into single options

usage

updating:

nix flake update

deployment:

deploy .#myHost

secrets:

sops ./machines/myHost/secrets.yaml

images:

nix build .#install-iso
nix build .#aarch64-install --system aarch64-linux

inspired by