nixos-config/system/nix.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

2023-05-18 12:36:43 -03:00
{ config, pkgs, inputs, ... }: {
nix.registry.nixpkgs.flake = inputs.nixpkgs;
nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
2023-05-18 12:36:43 -03:00
gc = {
automatic = true;
2023-11-23 12:37:15 -03:00
dates = "monthly";
2023-05-18 12:36:43 -03:00
options = "--delete-older-than 7d";
};
optimise.automatic = true;
settings = {
auto-optimise-store = true;
substituters = [
# "http://nixcache.lelgenio.1337.cx:5000"
"https://hyprland.cachix.org"
"https://lelgenio.cachix.org"
"https://wegank.cachix.org"
2023-10-30 16:50:48 -03:00
"https://snowflakeos.cachix.org/"
2023-05-18 12:36:43 -03:00
];
trusted-public-keys = [
# "nixcache.lelgenio.1337.cx:zxCfx7S658llDgAUG0JVyNrlAdFVvPniSdDOkvfTPS8="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"lelgenio.cachix.org-1:W8tMlmDFLU/V+6DlChXjekxoHZpjgVHZpmusC4cueBc="
"wegank.cachix.org-1:xHignps7GtkPP/gYK5LvA/6UFyz98+sgaxBSy7qK0Vs="
2023-10-30 16:50:48 -03:00
"snowflakeos.cachix.org-1:gXb32BL86r9bw1kBiw9AJuIkqN49xBvPd1ZW8YlqO70="
2023-05-18 12:36:43 -03:00
];
};
extraOptions = ''
2024-02-11 01:45:38 -03:00
experimental-features = nix-command flakes repl-flake
2023-05-18 12:36:43 -03:00
'';
};
}