nixos-generators/nixos-generate.nix

24 lines
468 B
Nix
Raw Normal View History

{ nixpkgs ? <nixpkgs>
, configuration ? <nixos-config>
, format-config ? <format-config>
, system ? builtins.currentSystem
}:
let
module = { lib, ... }: {
options = {
formatAttr = lib.mkOption {
type = lib.types.str;
description = "Declare the default attribute to build";
};
};
};
in
import "${toString nixpkgs}/nixos/lib/eval-config.nix" {
inherit system;
modules = [
module
format-config
configuration
];
}