mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -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,
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue