summaryrefslogtreecommitdiff
path: root/modules/nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nix')
-rw-r--r--modules/nix/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/nix/default.nix b/modules/nix/default.nix
new file mode 100644
index 0000000..365dc77
--- /dev/null
+++ b/modules/nix/default.nix
@@ -0,0 +1,37 @@
+{
+ nixpkgs.config.allowUnfree = true;
+
+ nix = {
+ settings = {
+ auto-optimise-store = true;
+ http-connections = 50;
+ warn-dirty = false;
+ log-lines = 50;
+ # sandbox = "relaxed";
+
+ trusted-users = [
+ "root"
+ "@wheel"
+ ];
+
+ substituters = [
+ "https://nix-community.cachix.org"
+ "https://hyprland.cachix.org"
+ "https://ghostty.cachix.org"
+ ];
+
+ experimental-features = [
+ "nix-command"
+ "flakes"
+ ];
+ };
+
+ gc = {
+ automatic = false;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+
+ # distributedBuilds = true;
+ };
+}