From 8f00617b3d99d554c56a8225e1f316640100dc44 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Wed, 10 Jan 2024 00:25:54 +0400 Subject: [PATCH] infect: remove nix profile in the end --- nixos-infect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 1a6df5f..7d2c3c3 100755 --- a/nixos-infect +++ b/nixos-infect @@ -520,7 +520,8 @@ infect() { fi # Remove nix installed by the "install" script. - rm -fv /nix/var/nix/profiles/default* + rm -fv /nix/var/nix/profiles/default* /root/.nix-profile + rm -rv /nix/var/nix/profiles/per-user /nix/var/nix/profiles/system/sw/bin/nix-collect-garbage }