tune nix settings

This commit is contained in:
Jennifer Graul 2025-01-23 12:52:51 +01:00
parent cf1514ffc6
commit c5c41d30c2
Signed by: netali
GPG Key ID: 9C55E636426B40A9

26
iso.nix
View File

@ -21,6 +21,32 @@
# Configure host id for ZFS to work # Configure host id for ZFS to work
networking.hostId = lib.mkDefault "8425e349"; networking.hostId = lib.mkDefault "8425e349";
nix = {
settings = {
trusted-users = [ "@wheel" ];
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
auto-optimise-store = true;
};
extraOptions = ''
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
nixPath = lib.mkForce [ "nixpkgs=${lib.cleanSource pkgs.path}" ];
registry = lib.mkForce {
"nixpkgs" = {
from = {
type = "indirect";
id = "nixpkgs";
};
to = {
type = "path";
path = lib.cleanSource pkgs.path;
};
exact = true;
};
};
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
w3m-nographics # needed for the manual anyway w3m-nographics # needed for the manual anyway
testdisk # useful for repairing boot problems testdisk # useful for repairing boot problems