34 lines
531 B
Nix
34 lines
531 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
nix = {
|
|
daemonCPUSchedPolicy = "idle";
|
|
daemonIOSchedClass = "idle";
|
|
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
};
|
|
|
|
gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
warn-dirty = false
|
|
'';
|
|
|
|
registry = {
|
|
nixpkgs.flake = inputs.nixpkgs;
|
|
unstable.flake = inputs.nixpkgs-unstable;
|
|
};
|
|
};
|
|
nixpkgs.config.allowUnfree = true;
|
|
}
|