From 084993f5d98e3c41dadb9d8033cd85d6a70e1cfb Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Wed, 2 Jun 2021 02:33:20 +0200 Subject: [PATCH] Fix nvd --- home-manager/roles/nvd.nix | 3 +-- lib/update-system.nix | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/home-manager/roles/nvd.nix b/home-manager/roles/nvd.nix index 3174bee8..a6df3458 100644 --- a/home-manager/roles/nvd.nix +++ b/home-manager/roles/nvd.nix @@ -2,8 +2,7 @@ with lib; let dag = config.lib.dag; - nvd = import pkgs.sources.nvd { inherit pkgs; }; in { - home.activation.report-changes = dag.entryAnywhere "${nvd}/bin/nvd diff $oldGenPath $newGenPath"; + home.activation.report-changes = dag.entryAnywhere "${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath"; } diff --git a/lib/update-system.nix b/lib/update-system.nix index 4e086b6a..ec20263d 100644 --- a/lib/update-system.nix +++ b/lib/update-system.nix @@ -6,7 +6,7 @@ in update-system = pkgs.writeHaskellScript { name = "update-system"; - bins = [ nixos-rebuild pkgs.nix-output-monitor (import pkgs.sources.nvd { inherit pkgs; }) ]; + bins = [ nixos-rebuild pkgs.nix-output-monitor pkgs.nvd ]; } '' main = do paths <- myNixPath "${configPath}"