Skip to content

Commit e3a1792

Browse files
committed
fix: nix optimise storage
1 parent c170e25 commit e3a1792

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/nixos/core-server.nix

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
# for nix server, we do not need to keep too much generations
1717
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 10;
1818

19+
# Manual optimise storage: nix-store --optimise
20+
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
21+
nix.settings.auto-optimise-store = true;
22+
1923
# Set your time zone.
2024
time.timeZone = "Asia/Shanghai";
2125

0 commit comments

Comments
 (0)