nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.09k stars 80 forks source link

nixos: Don't exit with an error in the activation script #84

Closed talyz closed 2 years ago

talyz commented 2 years ago

Exiting with an error in the activation script causes the whole script to fail and system boot thus fails with a kernel panic. Since the point of exiting with an error is mainly to make the systemd service fail, let's do it only when the script runs as a service.

Fixes #77

talyz commented 2 years ago

Superseded by #85