2025-04-21 13:04:42 -07:00
|
|
|
{inputs, ...}: {
|
2025-04-18 15:55:34 -07:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
nixPath = ["nixpkgs = ${inputs.nixpkgs}"];
|
|
|
|
extraOptions = ''
|
|
|
|
warn-dirty = false
|
|
|
|
'';
|
|
|
|
|
2025-04-19 10:35:31 -07:00
|
|
|
optimise = {
|
|
|
|
automatic = true;
|
|
|
|
};
|
|
|
|
|
2025-04-18 15:55:34 -07:00
|
|
|
settings = {
|
|
|
|
experimental-features = ["nix-command" "flakes"];
|
|
|
|
substituters = [
|
|
|
|
"https://cache.nixos.org/?priority=10"
|
|
|
|
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://cosmic.cachix.org/"
|
2025-04-21 10:25:32 -07:00
|
|
|
# For haskell
|
2025-04-18 15:55:34 -07:00
|
|
|
"https://cache.iog.io"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
2025-04-21 10:25:32 -07:00
|
|
|
# For haskell
|
2025-04-18 15:55:34 -07:00
|
|
|
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|