add to path

This commit is contained in:
Daylin Morgan 2024-07-18 11:45:57 -05:00
parent 9319af8c82
commit cfd29c576d
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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
'';