{ self, inputs, lib, pkgs, ... }: with lib; with lib.my; { mkSystem = path: attrs @ { ... }: { imports = [ { networking.hostName = mkDefault (removeSuffix ".nix" (baseNameOf path)); system.configurationRevision = self.rev or "dirty"; } ../. # /default.nix (import path) ]; }; mapSystems = dir: attrs @ { system ? system, ... }: mapModules dir (hostPath: mkSystem hostPath attrs); }