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

fix(nixos): allow eval to succeed when the module is unused #73

Closed lovesegfault closed 2 years ago

lovesegfault commented 2 years ago

Fixes an issue from #70 where system configs won't eval if no environment.persist confg exists.

~I think this fix is a little hacky, there's probably a better/clear way of handling this.~ Thought of a better way.

lovesegfault commented 2 years ago

@talyz I'm going to fast-merge this to un-break master since the patch is so small, we can re-hash it in a follow-up if you come up with a nicer fix?

talyz commented 2 years ago

I think this looks good! Maybe there's a nicer fix, but it would likely require a larger change. Thanks for fixing the issue!