{ lib, inputs, config, ... }: with lib; { config = mkIf config.hd.common.nix.enable { nix.settings = { experimental-features = [ "nix-command" "flakes" ]; trusted-users = [ "root" ]; auto-optimise-store = true; }; nix.registry = { cfg.flake = inputs.self; nixpkgs.flake = inputs.nixpkgs; nixpkgs-stable.flake = inputs.nixpkgs-stable; }; nixpkgs.config.allowUnfree = false; }; }