wow
This commit is contained in:
parent
d6103ad33a
commit
4b49b1b84d
2 changed files with 17 additions and 3 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -368,8 +368,12 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.caddy.serviceConfig = {
|
systemd.services.caddy = {
|
||||||
|
requires = [ "mnt-static.mount" ];
|
||||||
|
after = [ "mnt-static.mount" "systemd-tmpfiles-setup.service" ];
|
||||||
|
serviceConfig = {
|
||||||
RuntimeDirectory = "caddy";
|
RuntimeDirectory = "caddy";
|
||||||
RuntimeDirectoryMode = "0755";
|
RuntimeDirectoryMode = "0755";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue