45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
|
{
|
||
|
environment = {
|
||
|
# Print the URL instead on servers
|
||
|
variables.BROWSER = "echo";
|
||
|
# Don't install the /lib/ld-linux.so.2 and /lib64/ld-linux-x86-64.so.2
|
||
|
# stubs. Server users should know what they are doing.
|
||
|
stub-ld.enable = false;
|
||
|
};
|
||
|
|
||
|
documentation.nixos.enable = false;
|
||
|
|
||
|
# No need for fonts on a server
|
||
|
fonts.fontconfig.enable = false;
|
||
|
|
||
|
programs.command-not-found.enable = false;
|
||
|
|
||
|
# freedesktop xdg files
|
||
|
xdg.autostart.enable = false;
|
||
|
xdg.icons.enable = false;
|
||
|
xdg.menus.enable = false;
|
||
|
xdg.mime.enable = false;
|
||
|
xdg.sounds.enable = false;
|
||
|
|
||
|
systemd = {
|
||
|
|
||
|
# For more detail, see:
|
||
|
# https://0pointer.de/blog/projects/watchdog.html
|
||
|
watchdog = {
|
||
|
# systemd will send a signal to the hardware watchdog at half
|
||
|
# the interval defined here, so every 7.5s.
|
||
|
# If the hardware watchdog does not get a signal for 15s,
|
||
|
# it will forcefully reboot the system.
|
||
|
runtimeTime = "15s";
|
||
|
# Forcefully reboot if the final stage of the reboot
|
||
|
# hangs without progress for more than 30s.
|
||
|
# For more info, see:
|
||
|
# https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdShutdownWatchdog
|
||
|
rebootTime = "30s";
|
||
|
# Forcefully reboot when a host hangs after kexec.
|
||
|
# This may be the case when the firmware does not support kexec.
|
||
|
kexecTime = "1m";
|
||
|
};
|
||
|
};
|
||
|
}
|