summaryrefslogtreecommitdiff
path: root/modules/nix.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-29 20:54:34 -0700
committerFuwn <[email protected]>2024-08-29 20:54:34 -0700
commit6ddc25d4e189c30431703f602653b8bae861e4af (patch)
tree979cc4d790c3ce8895471d008d61c3e9645acec4 /modules/nix.nix
parentfirewall (diff)
downloadnixos-config-6ddc25d4e189c30431703f602653b8bae861e4af.tar.xz
nixos-config-6ddc25d4e189c30431703f602653b8bae861e4af.zip
some stuff
Diffstat (limited to 'modules/nix.nix')
-rw-r--r--modules/nix.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/nix.nix b/modules/nix.nix
new file mode 100644
index 0000000..26d79ef
--- /dev/null
+++ b/modules/nix.nix
@@ -0,0 +1,42 @@
+{
+ nixpkgs.config.allowUnfree = true;
+
+ nix = {
+ allowedUsers = [
+ "root"
+ "@wheel"
+ ];
+
+ 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;
+ };
+}