From e24954bca1188a4fe9ac344d44e1ce7ad1cdf859 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Fri, 21 Jan 2022 22:05:21 +0100 Subject: [PATCH] :broom: refactor --- modules/cli/nix.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/cli/nix.nix b/modules/cli/nix.nix index 0769b1c..39b68b5 100644 --- a/modules/cli/nix.nix +++ b/modules/cli/nix.nix @@ -1,10 +1,12 @@ { config, lib, pkgs, ... }: { - nix.package = pkgs.nixFlakes; - nix.gc = { - automatic = true; - options = "--max-freed $((32 * 1024**3)) --delete-older-than 14d"; + nix = { + package = pkgs.nix_2_4; + gc = { + automatic = true; + options = "--max-freed $((32 * 1024**3)) --delete-older-than 14d"; + }; + optimise.automatic = true; }; - nix.optimise.automatic = true; }