From b3889d2e147710c6974e9f03409cfc20ffa0cee9 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 13 Jun 2022 08:16:10 +0200 Subject: [PATCH] Remove nvd from update script It doesn't work and fails to execute the rest --- home/packages/custom/update-system/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/packages/custom/update-system/default.nix b/home/packages/custom/update-system/default.nix index 65e6b7c..a726135 100644 --- a/home/packages/custom/update-system/default.nix +++ b/home/packages/custom/update-system/default.nix @@ -3,14 +3,16 @@ writeShellApplication { name = "custom-update-system"; + # Including this doesn't work + # oldVersion=$(home-manager generations | head -n 2 | tail -n 1 | cut -d' ' -f 7) + # newVersion=$(home-manager generations | head -n 1 | cut -d' ' -f 7) + # nvd diff "$oldVersion" "$newVersion" + text = '' nix-channel --update home-manager switch home-manager expire-generations '-30 days' nix-env --delete-generations +5 - oldVersion=$(home-manager generations | head -n 2 | tail -n 1 | cut -d' ' -f 7) - newVersion=$(home-manager generations | head -n 1 | cut -d' ' -f 7) - nvd diff "$oldVersion" "$newVersion" nix store gc nix store optimise '';