only accept those dotnet EOL packages if needed

This commit is contained in:
TheWanderingCrow 2025-02-21 09:47:57 -05:00
parent 84aa6d6df7
commit 2fea4f7952

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
config,
pkgs,
...
}: {
config = {
system.stateVersion = "24.05";
time.timeZone = "America/New_York";
@ -25,11 +29,18 @@
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"dotnet-runtime-wrapped-7.0.20"
"dotnet-runtime-7.0.20"
"SDL_ttf-2.0.11"
];
permittedInsecurePackages =
[
"SDL_ttf-2.0.11"
]
++ (
if config.module.gaming.enable
then [
"dotnet-runtime-wrapped-7.0.20"
"dotnet-runtime-7.0.20"
]
else []
);
};
};
};