about summary refs log tree commit diff
path: root/hosts/common
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common')
-rw-r--r--hosts/common/homebrew.nix (renamed from hosts/common/darwin/homebrew.nix)0
-rw-r--r--hosts/common/macos.nix (renamed from hosts/common/darwin/macos.nix)0
-rw-r--r--hosts/common/nix.nix24
3 files changed, 24 insertions, 0 deletions
diff --git a/hosts/common/darwin/homebrew.nix b/hosts/common/homebrew.nix
index b358695..b358695 100644
--- a/hosts/common/darwin/homebrew.nix
+++ b/hosts/common/homebrew.nix
diff --git a/hosts/common/darwin/macos.nix b/hosts/common/macos.nix
index edc57a0..edc57a0 100644
--- a/hosts/common/darwin/macos.nix
+++ b/hosts/common/macos.nix
diff --git a/hosts/common/nix.nix b/hosts/common/nix.nix
new file mode 100644
index 0000000..c828a16
--- /dev/null
+++ b/hosts/common/nix.nix
@@ -0,0 +1,24 @@
+{ pkgs, ... }: {
+  nix = {
+    package = pkgs.nixFlakes;
+
+    gc = {
+      user = "root";
+      automatic = true;
+      interval = { Weekday = 0; Hour = 2; Minute = 0; };
+      options = "--delete-older-than 30d";
+    };
+
+    settings = {
+      trusted-users = [ "@admin" "fcuny" ];
+      experimental-features = [ "nix-command" "flakes" ];
+    };
+  };
+
+  nixpkgs.config = {
+    allowUnfree = true;
+    permittedInsecurePackages = [
+      "nix-2.16.2" # FIXME https://github.com/nix-community/nixd/issues/357
+    ];
+  };
+}