a flake module to ease creating and managing multiple hosts in your nix flake.

refactor: darwinInput -> nix-darwin

Changed files
+4 -4
+4 -4
lib.nix
··· 87 87 ... 88 88 }: 89 89 let 90 - darwinInput = inputs.darwin or inputs.nix-darwin or (throw "cannot find nix-darwin input"); 91 90 nixpkgs = inputs.nixpkgs or (throw "cannot find nixpkgs input"); 91 + nix-darwin = inputs.darwin or inputs.nix-darwin or (throw "cannot find nix-darwin input"); 92 92 93 93 # create the modulesPath based on the system, we need 94 - modulesPath = if class == "darwin" then "${darwinInput}/modules" else "${nixpkgs}/nixos/modules"; 94 + modulesPath = if class == "darwin" then "${nix-darwin}/modules" else "${nixpkgs}/nixos/modules"; 95 95 96 96 # we need to import the module list for our system 97 97 # this is either the nixos modules list provided by nixpkgs ··· 206 206 207 207 # we use these values to keep track of what upstream revision we are on, this also 208 208 # prevents us from recreating docs for the same configuration build if nothing has changed 209 - darwinVersionSuffix = ".${darwinInput.shortRev or darwinInput.dirtyShortRev or "dirty"}"; 210 - darwinRevision = darwinInput.rev or darwinInput.dirtyRev or "dirty"; 209 + darwinVersionSuffix = ".${nix-darwin.shortRev or nix-darwin.dirtyShortRev or "dirty"}"; 210 + darwinRevision = nix-darwin.rev or nix-darwin.dirtyRev or "dirty"; 211 211 }; 212 212 })) 213 213