Update flake

This commit is contained in:
Invariantspace 2024-12-19 20:42:14 -08:00
parent cdd034fb96
commit 359a59476d
Signed by: macronova
GPG key ID: CE969670FB4B4A56
5 changed files with 38 additions and 47 deletions

View file

@ -34,33 +34,10 @@
modules = [
# Import config from folder
(linuxCfgDir + "/${instance}")
# Setup Nix
# Common setups
({pkgs, ...}: {
networking.hostName = instance;
nix = {
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
trusted-substituters = ["https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"];
};
};
nixpkgs = {
config.allowUnfree = true;
# TODO: Remove this when possible
config.permittedInsecurePackages = [
"aspnetcore-runtime-6.0.36"
"aspnetcore-runtime-wrapped-6.0.36"
"dotnet-sdk-6.0.428"
"dotnet-sdk-wrapped-6.0.428"
];
overlays = [nix-custom.overlays.default];
};
nixpkgs.overlays = [nix-custom.overlays.default];
})
];
specialArgs = {inherit inputs;};