nixos/README.md

34 lines
726 B
Markdown
Raw Normal View History

# nixos-config [![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
2020-11-16 21:14:46 +01:00
This repository holds my NixOS configuration. It is fully reproducible, flakes
based, and position-independent, meaning there is no moving around of
`configuration.nix`.
2020-11-16 21:14:46 +01:00
Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage).
Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix).
2020-11-16 21:14:46 +01:00
## structure
2020-11-16 21:14:46 +01:00
```
.
├── nixos # Machine definitions
└── legacy # older scripts kept before having an iso-image
```
2020-11-16 21:14:46 +01:00
## usage
2020-11-16 21:14:46 +01:00
updating:
```bash
nix flake update
```
2020-11-16 21:14:46 +01:00
deployment:
```bash
deploy .#myHost
```
secrets:
```bash
sops ./nixos/myHost/secrets.yaml
```