aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2025-10-07 09:00:14 -0700
committerMark Nipper <nipsy@bitgnome.net>2025-10-07 09:00:14 -0700
commit0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867 (patch)
tree4552094e3ac23885bc672403c3adc7ccb708aec3 /hosts/common
parent0d76a8de20cc328c9f187494e77090a0cf7ba97c (diff)
downloadnix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.tar
nix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.tar.gz
nix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.tar.bz2
nix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.tar.lz
nix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.tar.xz
nix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.tar.zst
nix-0b1ad58e7d95a112a7e6d7bb8db09229fd7a9867.zip
Fix broken and unneeded settings
Diffstat (limited to 'hosts/common')
-rw-r--r--hosts/common/core/nix.nix27
1 files changed, 1 insertions, 26 deletions
diff --git a/hosts/common/core/nix.nix b/hosts/common/core/nix.nix
index c6279dc..3c798ae 100644
--- a/hosts/common/core/nix.nix
+++ b/hosts/common/core/nix.nix
@@ -1,36 +1,11 @@
{ inputs, lib, ... }:
-
-let
- build-tmp = "/var/tmp";
-in {
-
+{
nix = {
settings = {
auto-optimise-store = lib.mkDefault true;
- build-dir = build-tmp;
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "@wheel" ];
warn-dirty = false;
};
-
- # Garbage Collection
- gc = {
- automatic = true;
- dates = "weekly";
- options = "--delete-older-than 30d";
- persistent = true;
- randomizedDelaySec = "14m";
- };
-
- };
-
- systemd = {
- services."nix-daemon".environment.TMPDIR = build-tmp;
- user.services."nix-gc" = {
- description = "Garbage collection for user profiles";
- script = "/run/current-system/sw/bin/nix-collect-garbage --delete-older-than 30d";
- startAt = "daily";
- };
};
-
}