21 lines
662 B
Nix
21 lines
662 B
Nix
{ ... }:
|
|
{
|
|
# Environment package management
|
|
# Remove unnecessary default packages to keep system minimal
|
|
# Default packages usually include basic utilities that might not be needed
|
|
environment.defaultPackages = [ ];
|
|
|
|
# Clean up temporary files on every boot
|
|
# This prevents /tmp from accumulating old files and filling up
|
|
boot.tmp.cleanOnBoot = true;
|
|
|
|
# Disable coredumps to prevent filling up /var/lib/systemd/coredump/
|
|
# Coredumps can quickly consume large amounts of disk space
|
|
systemd.coredump.enable = false;
|
|
|
|
# Disable core dumps.
|
|
security.pam.loginLimits = [
|
|
{ domain = "*"; item = "core"; type = "hard"; value = "0"; }
|
|
];
|
|
}
|