NixTutorial/eval.nix

10 lines
287 B
Nix

let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-22.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.lib.evalModules {
modules = [
({ config, ... }: { config._module.args = { inherit pkgs; }; })
./default.nix
];
}