{ pkgs, myConfig, inputs, lib, ... }: { imports = [ ./hardware-configuration.nix ]; nixpkgs.config.allowUnfree = myConfig.general.allowUnfree; boot.loader = { systemd-boot = lib.mkIf (myConfig.nixos.Boot.mode == "systemd") { enable = false; }; grub = lib.mkIf (myConfig.nixos.Boot.mode == "grub") { enable = true; device = "nodev"; }; efi = { canTouchEfiVariables = true; }; }; nix = { distributedBuilds = true; settings = { builders-use-substitutes = true; trusted-users = myConfig.optionals.Builds.trustedUsers; experimental-features = ["nix-command" "flakes"]; }; }; programs.ssh.extraConfig = myConfig.general.ssh.extraConfig; system.stateVersion = "25.05"; }