2024-09-08 19:22:14 -05:00
|
|
|
{
|
2024-09-12 20:50:53 -05:00
|
|
|
config,
|
2025-01-15 19:15:51 -06:00
|
|
|
inputs,
|
2024-09-12 20:50:53 -05:00
|
|
|
lib,
|
2025-01-15 19:15:51 -06:00
|
|
|
pkgs,
|
2024-09-12 20:50:53 -05:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.programs.nix-ld;
|
|
|
|
in {
|
2025-01-15 19:15:51 -06:00
|
|
|
options.custom.programs.nix-ld = {
|
|
|
|
enable = mkOption {default = false;};
|
|
|
|
nix-alien = mkOption {default = true;};
|
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://github.com/nix-community/nix-ld
|
|
|
|
programs.nix-ld.enable = true;
|
2025-01-15 19:15:51 -06:00
|
|
|
|
|
|
|
# https://github.com/thiagokokada/nix-alien
|
|
|
|
#?? nix-alien -- BINARY
|
|
|
|
environment.systemPackages = mkIf cfg.nix-alien [pkgs.nix-alien];
|
|
|
|
|
|
|
|
# https://github.com/thiagokokada/nix-alien?tab=readme-ov-file#nixos-installation-with-flakes
|
|
|
|
nixpkgs.overlays = [inputs.nix-alien.overlays.default];
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
}
|