feat(services): enable tmpfs and fstrim services

Enable temporary file storage on tmpfs and configure TMPDIR for the nix-daemon. Also, ensure temporary files are cleaned on boot and enable fstrim service for filesystem maintenance.
This commit is contained in:
Harald Hoyer 2024-08-26 10:13:11 +02:00
parent 0cae58b515
commit 7abbe7474f

View file

@ -159,5 +159,11 @@ in
programs.git.enable = true;
virtualisation.libvirtd.enable = true;
boot.tmp.useTmpfs = true;
systemd.services.nix-daemon.environment.TMPDIR = "/var/tmp";
boot.tmp.cleanOnBoot = true;
services.fstrim.enable = true;
};
}