{ self, me, lib, ... }: let inherit (lib) mkIf mkMerge; renardCache = { substituters = [ "https://cache.rnrd.eu" ]; trusted-public-keys = [ "cache.rnrd.eu-1:6Q2MPTZ6ycAzWcc0VzXR+pKRlJ+6kfdQfj6iRsN5s1I=" ]; }; in { nix = { optimise = { automatic = true; dates = [ "06:00" ]; }; gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 14d"; }; # add compat scripts to the environment, # to allow nixos-option to find the configuration nixPath = [ "nixpkgs=${self}/compat" "nixos-config=${self}/compat/nixos" ]; settings = mkMerge [ { experimental-features = [ "flakes" "nix-command" ]; trusted-users = [ "root" "mel" ]; } (mkIf (!me.is.renard) renardCache) ]; }; }