Skip to content

Commit

Permalink
nixos impermanence: workaround new machine-id issue
Browse files Browse the repository at this point in the history
  • Loading branch information
willbush committed Nov 3, 2024
1 parent efba53e commit f59f3c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions profiles/nixos/persist.nix
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit f59f3c6

Please sign in to comment.