35 lines
602 B
Nix
35 lines
602 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
# rip out default packages
|
|
environment.defaultPackages = lib.mkForce [ ];
|
|
|
|
# allow packages with non-free licenses
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix = {
|
|
allowedUsers = [ "@wheel" ];
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
}
|