From 470c58dc09978b5bf7efa9ce8f5ccbb0ead78131 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Tue, 21 May 2024 00:01:29 +0300 Subject: [PATCH] added nix-alien --- configuration.nix | 2 ++ nix-alien.nix | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 nix-alien.nix diff --git a/configuration.nix b/configuration.nix index 6fbf160..2cfef18 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./nix-alien.nix ]; # Bootloader. @@ -101,6 +102,7 @@ # Install firefox. programs.firefox.enable = true; + programs.nix-ld.enable = true; # Allow unfree packages nixpkgs.config.allowUnfree = true; diff --git a/nix-alien.nix b/nix-alien.nix new file mode 100644 index 0000000..713ef20 --- /dev/null +++ b/nix-alien.nix @@ -0,0 +1,15 @@ +{ ... }: + +let + nix-alien-pkgs = import ( + builtins.fetchTarball "https://github.com/thiagokokada/nix-alien/tarball/master" + ) { }; +in +{ + environment.systemPackages = with nix-alien-pkgs; [ + nix-alien + ]; + + # Optional, but this is needed for `nix-alien-ld` command + programs.nix-ld.enable = true; +}