global/general: replace ensure with systemd tmpfiles

This commit is contained in:
Infinidoge 2024-01-31 14:21:18 -05:00
parent 6cfbf62470
commit d09fc8a2b2
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
3 changed files with 5 additions and 25 deletions

View file

@ -13,13 +13,15 @@
# Enable Early Out of Memory service
earlyoom.enable = true;
# Ensure certain necessary directories always exist
ensure.directories = [ "/mnt" ];
# Accept EULA for all minecraft servers
minecraft-servers.eula = true;
};
# Ensure certain necessary directories always exist
systemd.tmpfiles.rules = [
"d /mnt 0777 root root - -"
];
system.activationScripts = {
# FIX: command-not-found database doesn't exist normally
# FIXME: activation script doesn't work properly, and frequently errors