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, inputs,
self, self,
pkgs, pkgs,
lib,
enabled, enabled,
... ...
}: }:
let
inherit (lib) makeBinPath;
in
{ {
imports = [ inputs.nix-index-database.nixosModules.nix-index ]; imports = [ inputs.nix-index-database.nixosModules.nix-index ];
@ -42,7 +46,13 @@
system.activationScripts.diff = '' system.activationScripts.diff = ''
if [[ -e /run/current-system ]]; then 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 fi
''; '';