22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-13 11:35:47 +02:00

nix: run deletion as root to have enough permissions

This commit is contained in:
Sandro - 2023-01-17 02:12:16 +01:00
parent 48704bfae7
commit f47672fc25
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -8,7 +8,7 @@
};
config = {
system.userActivationScripts = {
system.activationScripts = {
deleteChannels = lib.mkIf config.nix.deleteChannels ''
echo "Deleting all channels..."
rm -rf /root/.nix-channels /home/*/.nix-channels /nix/var/nix/profiles/per-user/*/channels*