nixos-config/modules/nix/default.nix

32 lines
784 B
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib; {
2024-10-31 12:48:51 +00:00
imports = [
./link-inputs.nix
./lix.nix
2024-10-31 18:08:50 +00:00
./autoupdater.nix
2024-10-31 12:48:51 +00:00
];
nix.settings = {
substituters = mkMerge [
["https://attic.chir.rs/chir-rs/"]
(mkIf (!config.isInstaller) ["https://hydra.int.chir.rs"])
(mkIf config.isInstaller ["https://hydra.chir.rs"])
2024-10-31 12:48:51 +00:00
];
trusted-public-keys = [
"nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg="
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
"chir-rs:rzK1Czm3RqBbZLnXYrLM6JyOhfr6Z/8lhACIPO/LNFQ="
];
auto-optimise-store = true;
experimental-features = "nix-command flakes ca-derivations";
};
nix.gc = {
2024-10-31 18:14:12 +00:00
automatic = config.nix.enable;
2024-10-31 12:48:51 +00:00
dates = "weekly";
options = "--delete-older-than 7d";
};
}