arion/nix/default.nix
2019-06-15 14:32:59 +02:00

19 lines
401 B
Nix

/**
* This is the entry-point for all nix execution in this project.
*/
{ nixpkgsSrc ? ./nixpkgs.nix
, system ? null
, ...
}:
import (import ./nixpkgs.nix) ({
# Makes the config pure as well. See <nixpkgs>/top-level/impure.nix:
config = {
};
overlays = [
# all the packages are defined there:
(import ./overlay.nix)
];
} // (if system == null then {} else {
inherit system;
}))