This commit is contained in:
암냥 2026-08-26 12:05:53 +09:00
commit 4b49b1b84d
2 changed files with 17 additions and 3 deletions

View file

@ -44,6 +44,16 @@
networking.firewall.enable = false; networking.firewall.enable = false;
# /dev/sdd1 (ext4, UUID efdf753d-282c-4b78-9549-a124b353c6a5)
fileSystems."/mnt/static" = {
device = "/dev/disk/by-uuid/efdf753d-282c-4b78-9549-a124b353c6a5";
fsType = "ext4";
};
systemd.tmpfiles.rules = [
"L+ /var/static - - - - /mnt/static/static"
];
networking.hostName = "hako"; networking.hostName = "hako";
system.stateVersion = "26.05"; system.stateVersion = "26.05";
} }

View file

@ -368,8 +368,12 @@ in
}; };
}; };
systemd.services.caddy.serviceConfig = { systemd.services.caddy = {
RuntimeDirectory = "caddy"; requires = [ "mnt-static.mount" ];
RuntimeDirectoryMode = "0755"; after = [ "mnt-static.mount" "systemd-tmpfiles-setup.service" ];
serviceConfig = {
RuntimeDirectory = "caddy";
RuntimeDirectoryMode = "0755";
};
}; };
} }