Convert nix settings to nix format
This commit is contained in:
@@ -6,6 +6,11 @@
|
|||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
experimental-features = "nix-command flakes";
|
||||||
|
keep-outputs = true;
|
||||||
|
keep-derivations = true;
|
||||||
|
min-free = (toString (1024 * 1024 * 1024) );
|
||||||
|
max-free = (toString (5 * 1024 * 1024 * 1024) );
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.garnix.io"
|
"https://cache.garnix.io"
|
||||||
];
|
];
|
||||||
@@ -13,16 +18,6 @@
|
|||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# Keep freespace available, at a minimum, and enable Flakes
|
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
min-free = ${toString (1024 * 1024 * 1024) }
|
|
||||||
max-free = ${toString (5 * 1024 * 1024 * 1024) }
|
|
||||||
|
|
||||||
# Used by direnv
|
|
||||||
keep-outputs = true
|
|
||||||
keep-derivations = true
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user