aboutsummaryrefslogtreecommitdiff
path: root/hosts/commons/system/nix.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-12 13:47:59 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-12 13:47:59 -0800
commit8ed3dfc9ebc52a50c3e6d4623204847822944422 (patch)
tree5ecaf4eb3719f6d60e471775cd6de5da7cb78b46 /hosts/commons/system/nix.nix
parentconfigs: move personal configuration with user (diff)
downloadinfra-8ed3dfc9ebc52a50c3e6d4623204847822944422.tar.gz
move configurations and modules around
Sorry, this is a mess, hopefully the last one.
Diffstat (limited to 'hosts/commons/system/nix.nix')
-rw-r--r--hosts/commons/system/nix.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/commons/system/nix.nix b/hosts/commons/system/nix.nix
new file mode 100644
index 0000000..48379a4
--- /dev/null
+++ b/hosts/commons/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";
+ };
+ };
+}