❄️ Infrastructure configuration for FSR-operated machines
Find a file
Tassilo Tanneberger 69cf4211a4
Merge pull request #43 from fsr/userdir
Serve public_html directory
2023-07-08 18:47:37 +02:00
.github/workflows fix cachix ci (#37) 2023-05-25 23:59:56 +02:00
config Synapse LDAP config, add Portunus search user, update flake 2023-01-18 14:12:03 +01:00
hosts removed some unneeded files 2023-07-05 17:15:24 +02:00
keys Update fugi.asc 2023-06-08 13:31:55 +02:00
modules Merge pull request #43 from fsr/userdir 2023-07-08 18:47:37 +02:00
pkgs removed some unneeded files 2023-07-05 17:15:24 +02:00
secrets fix postfix ldap query 2023-07-07 10:55:23 +02:00
.gitignore fix .gitignore 2023-01-09 18:47:37 +01:00
.sops.yaml rekeying for quitte 2023-04-23 19:50:02 +02:00
flake.lock update input 2023-07-04 16:10:53 +02:00
flake.nix Merge pull request #43 from fsr/userdir 2023-07-08 18:47:37 +02:00
README.md Remove dkim keygen instructions 2023-03-01 15:30:23 +01:00

Infrastructure configuration for FSR-operated machines

This repository contains the NixOS configuration files for FSR machines.

Machines configures by this repository:

  • birne (the printer notebook)
  • tomate (backup endpoint and office computer)
  • quitte (new server predestined to run all important services)

Setup

Clone this repository on the target machine to /etc/nixos and build the desired host configuration e.g.

# you may need to copy the generated hardware-configuration.nix to hosts/<hostname>/hardware-configuraion.nix
nixos-rebuild switch --flake .#<hostname>

Tips and Tricks

Resolving merge conflicts in sops files

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.