mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-05 21:24:19 -06:00
nvd -> nix store diff-closures
This commit is contained in:
parent
e203b6cfa4
commit
763b1c349d
1 changed files with 1 additions and 11 deletions
|
@ -1,13 +1,9 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
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 ];
|
||||||
|
|
||||||
|
@ -34,13 +30,7 @@ in
|
||||||
|
|
||||||
system.activationScripts.diff = ''
|
system.activationScripts.diff = ''
|
||||||
if [[ -e /run/current-system ]]; then
|
if [[ -e /run/current-system ]]; then
|
||||||
PATH=$PATH:${
|
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
|
||||||
makeBinPath [
|
|
||||||
pkgs.nvd
|
|
||||||
pkgs.nix
|
|
||||||
]
|
|
||||||
}
|
|
||||||
nvd diff /run/current-system "$systemConfig"
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue