{ flake, self, inputs, system ? "x86_64-linux", ... }: let # Use folder name as name of this system name = builtins.baseNameOf ./.; in self.lib.nixpkgs-lib.nixosSystem { pkgs = import inputs.nixpkgs { inherit system; overlays = [ self.overlays.default (final: prev: { python311 = prev.python311.overrideAttrs (old: { passthru = old.passthru // { doc = old.passthru.doc.overrideAttrs (oldDoc: { patches = (oldDoc.patches or [ ]) ++ [ ./python-docutils-0.22.patch ./python-sphinx9-glossary.patch ]; }); }; }); }) ]; config.allowUnfreePredicate = pkg: builtins.elem (inputs.nixpkgs.lib.getName pkg) [ "affine" "affine-server-native" "steamcmd" "steam-unwrapped" "p4d" "p4" ]; }; modules = [ { networking.hostName = name; } (import ./${name}.nix { inherit flake self inputs; }) ]; }