nix-ld: add nix-alien option
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
ab625faa5a
commit
5568d90cca
3 changed files with 18 additions and 1 deletions
|
@ -59,6 +59,7 @@
|
|||
jovian-nixos = flake "github:Jovian-Experiments/Jovian-NixOS" // unstable "nixpkgs";
|
||||
niri = flake "github:YaLTeR/niri" // unstable "nixpkgs";
|
||||
niri-flake = flake "github:sodiboo/niri-flake" // unstable "nixpkgs";
|
||||
nix-alien = flake "github:thiagokokada/nix-alien" // unstable "nixpkgs";
|
||||
nix-flatpak = flake "github:gmodena/nix-flatpak?ref=v0.5.1";
|
||||
nix-index-database-unstable = flake "github:nix-community/nix-index-database" // unstable "nixpkgs";
|
||||
nix-vscode-extensions = flake "github:nix-community/nix-vscode-extensions" // unstable "nixpkgs";
|
||||
|
|
|
@ -103,6 +103,10 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
url = "github:sodiboo/niri-flake";
|
||||
};
|
||||
nix-alien = {
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
url = "github:thiagokokada/nix-alien";
|
||||
};
|
||||
nix-flatpak.url = "github:gmodena/nix-flatpak?ref=v0.5.1";
|
||||
nix-index-database-stable = {
|
||||
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||
|
|
|
@ -1,15 +1,27 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.programs.nix-ld;
|
||||
in {
|
||||
options.custom.programs.nix-ld.enable = mkOption {default = false;};
|
||||
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];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue