1
0
Fork 0
Nix geht mehr!
Find a file
2025-08-27 13:36:20 +02:00
common fix 2025-08-23 02:18:12 +02:00
hosts update 2025-08-27 13:36:20 +02:00
modules stuff 2025-07-14 21:18:44 +02:00
profiles update 2025-08-27 13:36:20 +02:00
secrets stuff 2025-08-18 00:49:47 +00:00
vendor update musicomp 2025-08-23 02:31:55 +02:00
.envrc whatever 2025-05-11 22:49:04 +02:00
.gitignore improvements 2025-07-04 21:16:55 +02:00
flake.lock update 2025-08-27 13:36:20 +02:00
flake.nix idk 2025-08-14 14:01:51 +00:00
flendor.json idk 2025-08-14 14:01:51 +00:00
LICENSE init 2024-02-04 21:51:11 +01:00
pubkeys.nix stuff 2025-08-18 00:49:47 +00:00
README.md fixes 2025-08-12 22:34:39 +00:00

❄️ puter

This is my cobbled together NixOS configuration. There are many like it, but this one is mine. Copy at your own risk.

Structure

  • common: Sane defaults that make sense to use for every host.
  • modules: Regular NixOS modules.
  • profiles: Higher-level NixOS modules that conform to different roles that a host may have.
  • secrets: Agenix secrets.
  • hosts: Hosts exposed in nixosConfigurations.
  • pubkeys.nix: Nix expression with all my SSH public keys, used for OpenSSH, Agenix and Restic.

Ports

  • 80X0: Public HTTP services that are proxied through nginx
  • 40X0: Syncthing instances (4000 being the system instance, subsequent ones are for individual users)

Installation

nix run git+https://codeberg.org/helvetica/zap.git /path/to/disk
# TODO: Configure additional disks
mkdir -p /mnt/etc/ssh
cat > /mnt/etc/ssh/ssh_host_ed25519_key
chmod 600 /mnt/etc/ssh/ssh_host_ed25519_key
ssh-keygen -f /mnt/etc/ssh/ssh_host_ed25519_key -y > /mnt/etc/ssh/ssh_host_ed25519_key.pub
nixos-install --no-root-password --flake git+https://codeberg.org/helvetica/puter.git#hostname

Enroll disk keys

systemd-cryptenroll /dev/sdX --tpm2-device=auto

Secure boot (TODO)

sudo sbctl create-keys
sudo tar --create --directory /var/lib/sbctl . | base64
cat keys | base64 --decode | sudo tar --extract

TODO

  • Monitoring
  • Rom sync
  • kaleidoscope backups
  • nginx websites