Skip to content
Discussion options

You must be logged in to vote

I got it. The thing is, you apply the impermanence aspect in the sys-secret-basic aspect that will included in to-users. It'll executed twice because you have 2 users. Even you're using lib.unique, this will still duplicated because the mergePersist is called twice.

That's my bad, I just understood the trace you did.

I tried several ways and find one that works. Here for the logic:

  1. apply the impermanence aspect in the host aspect instead of to-users policy.
  2. expose persist quirk in the user aspect. so the persist quirk in the user aspect can be collected in the host aspect.
  3. use policy.include to collecting persistUser quirk for each users.
{ den, lib, ... }: let
  inherit (den.lib) policy;

Replies: 4 comments 34 replies

Comment options

You must be logged in to vote
4 replies
@tschan
Comment options

@amanako
Comment options

@tschan
Comment options

@tschan
Comment options

Comment options

You must be logged in to vote
1 reply
@tschan
Comment options

Comment options

You must be logged in to vote
29 replies
@fmway
Comment options

fmway Jun 7, 2026
Collaborator

@tschan
Comment options

@fmway
Comment options

fmway Jun 7, 2026
Collaborator

@fmway
Comment options

fmway Jun 7, 2026
Collaborator

Answer selected by tschan
@tschan
Comment options

@fmway
Comment options

fmway Jun 8, 2026
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants