config/modules/shared/nix.nix

43 lines
917 B
Nix
Raw Normal View History

2025-04-18 15:55:34 -07:00
{
config,
inputs,
...
}: {
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/"
# 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="
# 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";
};
};
}