my nix configurations (please roast me)
Find a file
2024-01-09 08:34:36 +03:00
hosts fix: added puffer to coredns 2024-01-09 08:34:36 +03:00
lib feat: added sftpgo to puffer 2024-01-09 08:34:03 +03:00
packages feat: added sftpgo to puffer 2024-01-09 08:34:03 +03:00
secrets feat: added sftpgo to puffer 2024-01-09 08:34:03 +03:00
services feat: added sftpgo to puffer 2024-01-09 08:34:03 +03:00
ssh initial commit 2024-01-08 07:51:19 +03:00
users/teidesu feat: added sftpgo to puffer 2024-01-09 08:34:03 +03:00
.gitignore initial commit 2024-01-08 07:51:19 +03:00
agenix-edit initial commit 2024-01-08 07:51:19 +03:00
flake.lock initial commit 2024-01-08 07:51:19 +03:00
flake.nix initial commit 2024-01-08 07:51:19 +03:00
readme.md initial commit 2024-01-08 07:51:19 +03:00
switch initial commit 2024-01-08 07:51:19 +03:00

nixos

ok hi this is my nixos config. i use it only for my home server (for now).

the config is pretty much a mess and the code sucks.

code style

a few rules i came up with for myself to avoid blackbox magic:

  • no indirect imports using readDir or whatever
  • no custom overlays - any custom utils are explicitly imported. the only exception - globally available abs (in specialArgs) for absolute paths.
  • no custom options - only options defined in nixos search can be used.

there isn't much other than that, im just starting out.

impure dependencies

note to self on what needs to be installed on the host manually:

  • /etc/iso/win11.iso - iso containing windows 11 installer (e.g. this: magnet) currently unused
  • /etc/vms/haos.img - qcow2 image for haos vm (can be downloaded from the official website, the KVM/Proxmox image).
  • /etc/ssh/agenix_key - private key for secret decryption
  • /etc/secureboot/keys - secure boot keys, generated with sudo nix-shell -p sbctl --run "sbctl create-keys"
  • to enroll fde onto tpm: sudo systemd-cryptenroll /dev/nvme0n1p2 --tpm2-device=auto --tpm2-pcrs=0+2+7

nginx may not start the first time, its fine, just run sudo systemctl restart nginx and it should work. its likely due to docker containers not resolving yet.

cat in a readme 🐈

cat