nixos-generators/format-module.nix

21 lines
699 B
Nix
Raw Normal View History

2023-05-29 10:35:13 +03:00
{lib, ...}: rec {
2022-10-27 21:14:41 +03:00
_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";
2021-06-07 03:20:11 +03:00
options = {
filename = lib.mkOption {
type = lib.types.str;
description = "Declare the path of the wanted file in the output directory";
default = "";
2021-06-07 03:20:11 +03:00
};
formatAttr = lib.mkOption {
type = lib.types.str;
description = "Declare the default attribute to build";
};
};
}