{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09"; inputs.nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs, nixpkgs_unstable }: { nixosConfigurations = let mkConfig = { hostName, module }: { name = hostName; value = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ module ({...}: { # Let 'nixos-version --json' know about the Git revision # of this flake. system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; }) ]; }; }; myMachines = [ { hostName = "pincer"; module = ./machines/x1-pincer.nix; } ]; in builtins.listToAttrs (map mkConfig myMachines); }; }