23 lines
349 B
Nix
23 lines
349 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.frajul; let
|
|
cfg = config.apps.tools.nix-ld;
|
|
in {
|
|
imports = with inputs; [
|
|
nix-ld.nixosModules.nix-ld
|
|
];
|
|
options.apps.tools.nix-ld = with types; {
|
|
enable = mkBoolOpt false "Enable nix-ld";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nix-ld.enable = true;
|
|
};
|
|
}
|