{ self, ... }: { 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 = { experimental-features = [ "flakes" "nix-command" ]; trusted-users = [ "root" "mel" ]; }; }; }