{ inputs, nixpkgs, nix-darwin, vars, ... }: let systemConfig = system: { system = system; pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; }; in { # Host list # Build with darwin flake: `darwin-rebuild build --flake .#` # e.g. `darwin-rebuild build --flake .#"ThiccBook-Pro"` # Switch to current build: `darwin-rebuild switch --flake .#` # Lenovo ThinkPad L460; Intel Core i5-6300U "ThiccBook-Pro" = let vars.arch = "x86_64-darwin"; inherit (systemConfig vars.arch) system pkgs; in nix-darwin.lib.darwinSystem { inherit system; specialArgs = { inherit inputs pkgs vars; }; modules = [ ./configuration.nix ]; }; # Imaginary M1, just for reference MacBookProM1 = let vars.arch = "aarch64-darwin"; inherit (systemConfig vars.arch) system pkgs; in nix-darwin.lib.darwinSystem { inherit system; specialArgs = { inherit inputs pkgs vars; }; modules = [ ./configuration.nix ]; }; } # vim:set ts=2 sw=2 et: