mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-08-16 15:40:26 +03:00
21 lines
699 B
Nix
21 lines
699 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 = {
|
|
filename = 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";
|
|
};
|
|
};
|
|
}
|