2026-01-28 16:48:12 +00:00
2026-01-27 10:30:14 +00:00
2026-01-28 17:02:42 +00:00
2025-12-07 19:19:15 +02:00
2026-01-27 21:25:49 +00:00
2024-03-10 17:20:09 +02:00
2026-01-10 20:01:12 +02:00
2026-01-28 07:00:37 +00:00
2026-01-28 17:02:42 +00:00
2026-01-10 18:11:07 +00:00
2024-01-15 18:18:45 +02:00
2026-01-28 16:18:33 +00:00
2025-12-07 19:19:15 +02:00

Config

Flakes:

$ deploy --interactive '#fwminex'

$ nix build .#deploy.nodes.fra1-c.profiles.system.path

Other:

$ nix build .#nixosConfigurations.vno3-rp3b.config.system.build.toplevel
$ nix eval .#nixosConfigurations.fwminex.config.services.nsd
$ nix why-depends .#nixosConfigurations.vno1-gdrx.config.system.build.toplevel .#legacyPackages.x86_64-linux.mbedtls_2

Encoding host-only secrets

Encode a secret on host:

rage -e -r "$(cat /etc/ssh/ssh_host_ed25519_key.pub)" -o secret.age /path/to/plaintext

Decode a secret on host (to test things out):

rage -d -i /etc/ssh/ssh_host_ed25519_key secret.age

Borg

BORG_PASSCOMMAND="cat /run/agenix/borgbackup-fwminex" borg --remote-path=borg1 list zh2769@zh2769.rsync.net:fwminex.jakst.vpn-home-motiejus-annex2

netboot

  1. dmesg | grep enp0 <- find the usb interface
  2. Disable power saving: echo -1 | sudo tee /sys/bus/usb/devices/2-1/power/autosuspend.

Testing netboot

sudo ip tuntap add dev tap0 mode tap user "$USER"
sudo ip link set dev tap0 up
sudo ip link set dev tap0 master br0

efi:

qemu-system-x86_64
-enable-kvm
-cpu host
-m 1024
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no
-device e1000,netdev=net0
-boot order=n
-bios $(nix build .#nixosConfigurations.mtworx.pkgs.OVMF.fd --no-link --print-out-paths)/FV/OVMF.fd

bios:

qemu-system-x86_64
-enable-kvm
-cpu host
-m 8192
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no
-device e1000,netdev=net0
-boot order=n

Description
My configuration. Probably nothing to look for here.
Readme 6.2 MiB
Languages
Nix 81.3%
Lua 10.3%
Shell 3.4%
Go 3.2%
Vim Script 0.9%
Other 0.9%