aboutsummaryrefslogtreecommitdiff
path: root/modules/nix/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nix/system')
-rw-r--r--modules/nix/system/default.nix23
1 files changed, 23 insertions, 0 deletions
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;
+ };
+}