Update flake
This commit is contained in:
parent
cdd034fb96
commit
359a59476d
5 changed files with 38 additions and 47 deletions
27
flake.nix
27
flake.nix
|
|
@ -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;};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue