nix/module.nix: change some settings

This commit is contained in:
Charlie Root 2024-09-20 22:57:03 +02:00
commit e1250a554f

View file

@ -1,9 +1,13 @@
# credits to raf # credits to raf
{ {
config,
inputs, inputs,
lib,
pkgs, pkgs,
... ...
}: { }: let
inherit (lib) mapAttrsToList;
in {
imports = [ imports = [
./documentation.nix # nixos documentation ./documentation.nix # nixos documentation
./nixpkgs.nix # global nixpkgs configuration.nix ./nixpkgs.nix # global nixpkgs configuration.nix
@ -15,6 +19,10 @@
nix = { nix = {
package = pkgs.lix; package = pkgs.lix;
# This will additionally add your inputs to the system's legacy channels
# Making legacy nix commands consistent as well
nixPath = mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
# Run the Nix daemon on lowest possible priority so that my system # Run the Nix daemon on lowest possible priority so that my system
# stays responsive during demanding tasks such as GC and builds. # stays responsive during demanding tasks such as GC and builds.
# This is especially useful while auto-gc and auto-upgrade are enabled # This is especially useful while auto-gc and auto-upgrade are enabled
@ -63,6 +71,7 @@
# to dependencies outside of the Nix store by using network # to dependencies outside of the Nix store by using network
# and mount namespaces in a chroot environment. # and mount namespaces in a chroot environment.
sandbox = true; sandbox = true;
sandbox-fallback = false;
# Continue building derivations even if one fails # Continue building derivations even if one fails
keep-going = true; keep-going = true;
@ -88,7 +97,7 @@
# Ensures that the result of Nix expressions is fully determined by # Ensures that the result of Nix expressions is fully determined by
# explicitly declared inputs, and not influenced by external state. # explicitly declared inputs, and not influenced by external state.
# In other words, fully stateless evaluation by Nix at all times. # In other words, fully stateless evaluation by Nix at all times.
pure-eval = true; pure-eval = false;
# Don't warn me that my git tree is dirty, I know. # Don't warn me that my git tree is dirty, I know.
warn-dirty = false; warn-dirty = false;
@ -125,7 +134,6 @@
"https://cache.nixos.org" # funny binary cache "https://cache.nixos.org" # funny binary cache
"https://nix-community.cachix.org" # nix-community cache "https://nix-community.cachix.org" # nix-community cache
"https://hyprland.cachix.org" # hyprland "https://hyprland.cachix.org" # hyprland
# "https://nixpkgs-unfree.cachix.org" # unfree-package cache
"https://helix.cachix.org" # a chache for helix "https://helix.cachix.org" # a chache for helix
]; ];
@ -133,7 +141,7 @@
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ3m4myogDm4OgU2ru6lIwPvuCVs=" "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
]; ];
}; };
}; };