From 8c7ce797eb2a1c5b8b3c602ecd3300cd23e8b46c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 12 Feb 2022 13:53:12 -0800 Subject: hosts: rename commons to common --- hosts/common/system/nix.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hosts/common/system/nix.nix (limited to 'hosts/common/system/nix.nix') diff --git a/hosts/common/system/nix.nix b/hosts/common/system/nix.nix new file mode 100644 index 0000000..48379a4 --- /dev/null +++ b/hosts/common/system/nix.nix @@ -0,0 +1,18 @@ +{ lib, pkgs, ... }: + +{ + # Enable flakes and new 'nix' command + nix = { + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; + autoOptimiseStore = true; + trustedUsers = [ "root" "@wheel" ]; + + gc = { + automatic = true; + options = "--delete-older-than 14d"; + }; + }; +} -- cgit v1.2.3