2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-19 12:45:54 -03:00
|
|
|
let
|
2024-05-30 16:54:58 -03:00
|
|
|
collectFlakeInputs =
|
|
|
|
input: [ input ] ++ lib.concatMap collectFlakeInputs (builtins.attrValues (input.inputs or { }));
|
2024-02-19 12:45:54 -03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
system.extraDependencies = collectFlakeInputs inputs.self;
|
|
|
|
|
2023-05-18 12:36:43 -03:00
|
|
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
|
|
|
nix = {
|
2023-08-16 00:29:14 -03:00
|
|
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
2023-05-18 12:36:43 -03:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
2024-05-30 16:54:06 -03:00
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
2023-05-18 12:36:43 -03:00
|
|
|
};
|
|
|
|
optimise.automatic = true;
|
|
|
|
settings = {
|
|
|
|
auto-optimise-store = true;
|
2024-05-30 16:54:58 -03:00
|
|
|
trusted-users = [
|
|
|
|
"root"
|
|
|
|
"@wheel"
|
|
|
|
];
|
2023-05-18 12:36:43 -03:00
|
|
|
substituters = [
|
2024-02-19 12:05:14 -03:00
|
|
|
"https://cache.nixos.org"
|
|
|
|
"https://nix-community.cachix.org"
|
2023-05-18 12:36:43 -03:00
|
|
|
# "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 = [
|
2024-02-19 12:05:14 -03:00
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
2023-05-18 12:36:43 -03:00
|
|
|
# "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
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|