nixos-config/common/nix.nix

23 lines
520 B
Nix
Raw Normal View History

2024-12-19 20:42:14 -08:00
{config, ...}: {
nix = {
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
trusted-users = [config.constants.userName];
};
};
nixpkgs = {
config.allowUnfree = true;
config.permittedInsecurePackages = [
"aspnetcore-runtime-6.0.36"
"aspnetcore-runtime-wrapped-6.0.36"
"dotnet-sdk-6.0.428"
"dotnet-sdk-wrapped-6.0.428"
];
};
}