base: clean tmp on boot

This commit is contained in:
Daniel Langbein 2023-10-24 20:06:36 +02:00
parent 3d5acb67c4
commit 79129ca84b
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -39,7 +39,6 @@
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
@ -52,8 +51,11 @@
LC_TIME = "de_DE.UTF-8";
};
console = {
#font = "Lat2-Terminus16";
# Configure console keymap.
console.keyMap = "de-latin1-nodeadkeys";
keyMap = "de-latin1-nodeadkeys";
};
# Define a user account. Don't forget to set a password with `passwd`.
users.users.yoda = {
@ -88,6 +90,9 @@
options = "--delete-older-than 7d";
};
# Delete all files in /tmp during boot.
boot.tmp.cleanOnBoot = true;
# Firewall.
# https://nixos.wiki/wiki/Firewall
# -> Firewall rules may be overwritten by docker, as per https://github.com/NixOS/nixpkgs/issues/111852