1
1
Fork 0

nix-ld: add nix-alien option

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-01-15 19:15:51 -06:00
parent ab625faa5a
commit 5568d90cca
Signed by: Myned
GPG key ID: C7224454F7881A34
3 changed files with 18 additions and 1 deletions

View file

@ -59,6 +59,7 @@
jovian-nixos = flake "github:Jovian-Experiments/Jovian-NixOS" // unstable "nixpkgs"; jovian-nixos = flake "github:Jovian-Experiments/Jovian-NixOS" // unstable "nixpkgs";
niri = flake "github:YaLTeR/niri" // unstable "nixpkgs"; niri = flake "github:YaLTeR/niri" // unstable "nixpkgs";
niri-flake = flake "github:sodiboo/niri-flake" // 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-flatpak = flake "github:gmodena/nix-flatpak?ref=v0.5.1";
nix-index-database-unstable = flake "github:nix-community/nix-index-database" // unstable "nixpkgs"; 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"; nix-vscode-extensions = flake "github:nix-community/nix-vscode-extensions" // unstable "nixpkgs";

View file

@ -103,6 +103,10 @@
inputs.nixpkgs.follows = "nixpkgs-unstable"; inputs.nixpkgs.follows = "nixpkgs-unstable";
url = "github:sodiboo/niri-flake"; 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-flatpak.url = "github:gmodena/nix-flatpak?ref=v0.5.1";
nix-index-database-stable = { nix-index-database-stable = {
inputs.nixpkgs.follows = "nixpkgs-stable"; inputs.nixpkgs.follows = "nixpkgs-stable";

View file

@ -1,15 +1,27 @@
{ {
config, config,
inputs,
lib, lib,
pkgs,
... ...
}: }:
with lib; let with lib; let
cfg = config.custom.programs.nix-ld; cfg = config.custom.programs.nix-ld;
in { 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 { config = mkIf cfg.enable {
# https://github.com/nix-community/nix-ld # https://github.com/nix-community/nix-ld
programs.nix-ld.enable = true; 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];
}; };
} }