From a817c7e23ada869ecd946fe413c1e65826c525a4 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 18 Apr 2022 11:14:35 +0100 Subject: [PATCH] nixos/containers: Don't rm /etc/machine-id on activation --- nixos/modules/containers.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nixos/modules/containers.nix b/nixos/modules/containers.nix index e989c0e..53a88ff 100644 --- a/nixos/modules/containers.nix +++ b/nixos/modules/containers.nix @@ -235,11 +235,6 @@ in }; system.activationScripts = { - # impermanence will throw a fit and bail the whole activation script if this already exists (the container - # start script pre-creates it for some reason) - clearMachineId.text = "rm -f /etc/machine-id"; - createPersistentStorageDirs.deps = [ "clearMachineId" ]; - # Ordinarily I think the Nix daemon does this but ofc it doesn't in the container createNixPerUserDirs = { text =