summaryrefslogtreecommitdiff
path: root/modules/nix/default.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-28 20:36:04 -0700
committerFuwn <[email protected]>2024-08-28 20:36:04 -0700
commitf3c31e4ad7fab36e151f3a2e207fafb1eda1a787 (patch)
treee265a1a5270b4522049110b8bc5aa13fda142c2f /modules/nix/default.nix
parentmany (diff)
downloadnixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.tar.xz
nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.zip
hi
Diffstat (limited to 'modules/nix/default.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;
+ };
+}