From 53248b3a4ef87a574ea8688f8a9509b21e8aab98 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Wed, 11 Oct 2023 11:42:16 +0700 Subject: [PATCH] chore(scripts): better update nix --- scripts/nix_maintain.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/nix_maintain.sh b/scripts/nix_maintain.sh index 964270c..c39221d 100755 --- a/scripts/nix_maintain.sh +++ b/scripts/nix_maintain.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash -nix-channel --update +sudo -i sh -c 'nix-channel --update' +sudo -i sh -c 'nix-env -uA nixpkgs.nix' +sudo -i sh -c 'nix-collect-garbage -d' nix-env -uA \ nixpkgs.less nixpkgs.libgit2 nixpkgs.git nixpkgs.neovim \