1
1
Fork 0
nixos/options/custom/programs/nix-ld.nix
Myned 5568d90cca
nix-ld: add nix-alien option
Signed-off-by: Myned <dev@bjork.tech>
2025-01-15 19:15:51 -06:00

27 lines
656 B
Nix

{
config,
inputs,
lib,
pkgs,
...
}:
with lib; let
cfg = config.custom.programs.nix-ld;
in {
options.custom.programs.nix-ld = {
enable = mkOption {default = false;};
nix-alien = mkOption {default = true;};
};
config = mkIf cfg.enable {
# https://github.com/nix-community/nix-ld
programs.nix-ld.enable = true;
# 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];
};
}