Skip to content

Commit 5af8a87

Browse files
committed
gateway /nix fs mount
1 parent 960ebf8 commit 5af8a87

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

modules/home-manager/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@
143143
usage
144144
uv
145145
worktrunk
146-
wrangler
147146
yadm
148147
yq-go
149148
zoxide

modules/nixos/gateway.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ in
2626
networking.hostName = "gateway";
2727
networking.domain = "";
2828

29+
# Hetzner volume mounted early in initrd so that /nix is available before
30+
# systemd starts — avoids a chicken-and-egg problem where systemd itself
31+
# lives in /nix/store.
32+
boot.initrd.availableKernelModules = [ "virtio_scsi" ];
33+
fileSystems."/nix" = {
34+
device = "/dev/disk/by-id/scsi-0HC_Volume_105289845";
35+
fsType = "ext4";
36+
options = [
37+
"discard"
38+
"defaults"
39+
];
40+
neededForBoot = true;
41+
};
42+
2943
# Open additional ports beyond the SSH default from hetzner.nix
3044
networking.firewall = {
3145
allowedTCPPorts = [

0 commit comments

Comments
 (0)