mimas: dedup options, fix eval
Martin Weinelt committed
Dec 11, 2024 at 00:45 UTC
32482e0ea9365a190da76877cb4b468c65935e08
2 files changed
+1
-16
build/hydra.nix
+1
-1
@@ -20,7 +20,7 @@ in
20
};
21
22
# gc outputs as well, since they are served from the cache
23
- nix.settings.gc-keep-outputs = false;
23
+ nix.settings.gc-keep-outputs = lib.mkForce false;
24
25
systemd.services.hydra-prune-build-logs = {
26
description = "Clean up old build logs";
build/mimas/default.nix
-15
@@ -1,8 +1,3 @@
1
-{
2
- pkgs,
3
- ...
4
-}:
5
-
1
{
2
imports = [
3
../common.nix
@@ -27,16 +22,6 @@
22
memoryPercent = 50;
23
};
24
30
- # garbage collection
31
- nix.gc = {
32
- automatic = true;
33
- options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
34
- dates = "03,09,15,21:15";
35
- };
36
-
37
- # gc outputs as well, since they are served from the cache
38
- nix.settings.gc-keep-outputs = false;
39
-
25
nixpkgs.hostPlatform = "x86_64-linux";
26
27
system.stateVersion = "24.11";