From f59f3c693ee2ce2ef6f6350dce2fca0b3669de0c Mon Sep 17 00:00:00 2001 From: Will Bush Date: Sat, 2 Nov 2024 21:54:43 -0500 Subject: [PATCH] nixos impermanence: workaround new machine-id issue https://github.com/nix-community/impermanence/issues/229 --- profiles/nixos/persist.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/nixos/persist.nix b/profiles/nixos/persist.nix index 9d082ee4..48399c75 100644 --- a/profiles/nixos/persist.nix +++ b/profiles/nixos/persist.nix @@ -1,5 +1,10 @@ # https://github.com/nix-community/impermanence#module-usage { + # workaround https://github.com/nix-community/impermanence/issues/229 + # note `systemd.tmpfiles.rules` workaround did not work + boot.initrd.systemd.suppressedUnits = [ "systemd-machine-id-commit.service" ]; + systemd.suppressedSystemUnits = [ "systemd-machine-id-commit.service" ]; + environment.persistence."/nix/persist" = { hideMounts = true; directories = [