{ description = "multi-machine nixos config"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; zen-browser = { url = "github:youwen5/zen-browser-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, ... }@inputs: let mkHost = hostname: nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ ./hosts/${hostname} ]; }; in { nixosConfigurations = { minipc = mkHost "minipc"; laptop = mkHost "laptop"; gaming = mkHost "gaming"; }; }; }