diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-03-15 13:22:18 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-03-21 11:15:32 +0100 |
commit | a98ea7e6f8743863aa51385c942ad482ea598707 (patch) | |
tree | dccb410fb3363538dbe976f22588caf8222d7ba9 /nixos/modules/programs | |
parent | 9c0dd184928e48d66a50291a7e0ee394029166ed (diff) |
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" + ]; + }; +} |