From a45c4551712c1ba5cb82eaf290f311ab0e8690e4 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:40:46 +0000 Subject: big changes --- modules/nix/system/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/nix/system/default.nix (limited to 'modules/nix') diff --git a/modules/nix/system/default.nix b/modules/nix/system/default.nix new file mode 100644 index 0000000..c35d3b3 --- /dev/null +++ b/modules/nix/system/default.nix @@ -0,0 +1,23 @@ +{ + nix = { + gc.automatic = false; # use nh cleaner instead + + # Make builds run with low priority so my system stays responsive + daemonCPUSchedPolicy = "idle"; + daemonIOSchedClass = "idle"; + + settings = { + extra-experimental-features = ["nix-command" "flakes" "pipe-operators"]; + auto-optimise-store = true; + use-xdg-base-directories = true; + }; + }; + + # Disable channels + nix.channel.enable = false; + programs.command-not-found.enable = false; # breaks unless you use channels + + nixpkgs = { + config.allowUnfree = true; + }; +} -- cgit v1.3.1