refactor: combine nix-settings and nixpkgs modules into one nix module

This commit is contained in:
wi11-holdsworth 2025-10-22 17:26:30 +11:00
parent a896a4a87f
commit 8f4defe84b
3 changed files with 8 additions and 5 deletions

View file

@ -0,0 +1,31 @@
{
lib,
...
}:
{
# allow packages with non-free licenses
nixpkgs.config.allowUnfree = true;
nix = {
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 20d";
persistent = true;
};
optimise = {
automatic = true;
persistent = true;
};
settings = {
experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [
"will"
"srv"
];
};
};
}