mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-22 10:05:06 +03:00
21 lines
704 B
Nix
21 lines
704 B
Nix
{lib, ...}: rec {
|
|
_file = ./format-module.nix;
|
|
# This deliberate key makes sure this module will be deduplicated
|
|
# regardless of the accessor path: either via flake's nixosModule
|
|
# or as part of the nixos-generate command. These two store paths
|
|
# of the module may differ and hence don't serve as a key
|
|
key = "github:nix-community/nixos-generators/format-module.nix";
|
|
|
|
options = {
|
|
fileExtension = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Declare the path of the wanted file in the output directory";
|
|
default = "";
|
|
};
|
|
formatAttr = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Declare the default attribute to build";
|
|
};
|
|
};
|
|
}
|