diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-03-21 18:42:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 18:42:38 +0000 |
commit | 9b2939da63e1fd1871bd798625cf001b33b7a5f2 (patch) | |
tree | 7d49e88cbd952df1b60ce1b96f66907400b16cad /nixos/modules/programs | |
parent | ac4dcf66ae62511e3b100eb42de9038046664dee (diff) | |
parent | 35eb6cf7119d2ec27d6fe417c266a0152738d36b (diff) |
Merge pull request #164260 from Mic92/nix-ld
nix-ld: init at 1.0.0 + nixos module
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/nix-ld.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/programs/nix-ld.nix b/nixos/modules/programs/nix-ld.nix new file mode 100644 index 0000000000000..810a74ab50b7f --- /dev/null +++ b/nixos/modules/programs/nix-ld.nix @@ -0,0 +1,12 @@ +{ pkgs, lib, config, ... }: +{ + meta.maintainers = [ lib.maintainers.mic92 ]; + options = { + programs.nix-ld.enable = lib.mkEnableOption ''nix-ld, Documentation: <link xlink:href="https://github.com/Mic92/nix-ld"/>''; + }; + config = lib.mkIf config.programs.nix-ld.enable { + systemd.tmpfiles.rules = [ + "L+ ${pkgs.nix-ld.ldPath} - - - - ${pkgs.nix-ld}/libexec/nix-ld" + ]; + }; +} |