fruitbasket/README.md

28 lines
952 B
Markdown
Raw Permalink Normal View History

2021-11-17 12:29:47 +01:00
# Infrastructure configuration for FSR-operated machines
This repository contains the NixOS configuration files for FSR machines.
## Machines configured by this repository:
2023-02-17 15:08:24 +01:00
- `quitte` (new server predestined to run all important services)
2021-11-17 12:29:47 +01:00
## Setup
2023-02-17 15:08:24 +01:00
Clone this repository on the target machine to `/etc/nixos` and build the desired host configuration e.g.
2021-11-17 12:29:47 +01:00
```bash
2023-02-17 15:08:24 +01:00
# you may need to copy the generated hardware-configuration.nix to hosts/<hostname>/hardware-configuraion.nix
nixos-rebuild switch --flake .#<hostname>
2021-11-17 12:29:47 +01:00
```
2023-02-17 15:08:24 +01:00
## Tips and Tricks
<details>
<summary>Resolving merge conflicts in sops files</summary>
### Required steps
1. Manually resolve the conflicts in the encrypted file
2. Open the file using `sops --ignore-mac secrets/<hostname>.yml`
3. Change one letter in one of the yml entries to let sops know it has to regenerate the MAC
4. Close the file. Open it again and revert the change you just did in step 3.
</details>