{ inputs, ... }: { flake.modules.nixos.base = { config, ... }: { nix = { gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 5d --log-format internal-json"; persistent = true; }; optimise = { automatic = true; dates = "weekly"; persistent = true; }; settings = { auto-optimise-store = true; experimental-features = [ "nix-command" "flakes" ]; allowed-users = [ ]; trusted-users = [ "@wheel" ]; }; }; system = let self = inputs.self; in { configurationRevision = self.rev or self.dirtyRev or "unknown"; nixos.label = "${config.system.nixos.release}-${self.shortRev or self.dirtyShortRev or "unknown"}"; }; }; }