mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
add to path
This commit is contained in:
parent
9319af8c82
commit
cfd29c576d
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue