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:
parent
48704bfae7
commit
f47672fc25
|
@ -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*
|
||||
|
|
Loading…
Reference in New Issue
Block a user