From cfd29c576d426fdd6498c3f31e6712658ecac0bf Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 18 Jul 2024 11:45:57 -0500 Subject: [PATCH] add to path --- modules/nix.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/nix.nix b/modules/nix.nix index d5af8b3..bdc4d9d 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -2,9 +2,13 @@ inputs, self, pkgs, + lib, enabled, ... }: +let + inherit (lib) makeBinPath; +in { imports = [ inputs.nix-index-database.nixosModules.nix-index ]; @@ -42,7 +46,13 @@ system.activationScripts.diff = '' if [[ -e /run/current-system ]]; then - ${pkgs.nvd}/bin/nvd diff /run/current-system "$systemConfig" + PATH=$PATH:${ + makeBinPath [ + pkgs.nvd + pkgs.nix + ] + } + nvd diff /run/current-system "$systemConfig" fi '';