Skip to content

Conversation

@brianmcgillion
Copy link
Contributor

@brianmcgillion brianmcgillion commented Dec 7, 2025

lib.optional returns the empty set [] when a check is false. In this case it causes the options to be set to an empty list which the module does not allow. So append the new options if true.

issue introduced from (#419)

@brianmcgillion brianmcgillion marked this pull request as draft December 7, 2025 05:08
@brianmcgillion brianmcgillion marked this pull request as ready for review December 7, 2025 05:17
@brianmcgillion
Copy link
Contributor Author

@astro could I ask for a review?

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I just wanted to let you know that we don't use semantic commits.

@brianmcgillion brianmcgillion changed the title fix(writableStoreOverlay): append dont clear fix: append dont clear Dec 7, 2025
Comment on lines 90 to 91
} // lib.optionalAttrs isRwStoreVirtiofsShare {
options = [ "userxattr" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} // lib.optionalAttrs isRwStoreVirtiofsShare {
options = [ "userxattr" ];
options = lib.mkIf isRwStoreVirtiofsShare [ "userxattr" ];

We should really use this 😅

lib.optional returns the empty set [] when a check is false.
In the default state this causes the options to be set to an empty list which
the module does not allow. So append the new options only if
isRwStoreVirtiofsShare is true.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants