Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uid gid for templates #715

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

dkowis
Copy link

@dkowis dkowis commented Jan 18, 2025

Inspired by #637

I'm almost done with this, but I need some help. I can't figure out how to get assertions into it. I'm not quite skilled enough with nix to figure that part out on my own. Happy to squash commits when done.

This should resolve #514 by adding uid/gids to templates.

type = types.singleLineStr;
default = "staff";
type = with lib.types; nullOr singleLineStr;
default = if config.owner != null then "staff" else null;
Copy link
Owner

Choose a reason for hiding this comment

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

I assume you have not tested this on macOS yet?
I just need to know if I need to give this a try before merging.

Copy link
Author

Choose a reason for hiding this comment

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

That is correct, I do not have an OSX I can test it with.

Copy link
Author

Choose a reason for hiding this comment

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

Also, just in case you didn't see it, I still haven't figured out how to add assertions, if you could offer a bit of advice there, I'd appreciate it :D

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.

setting owner and group seems not to work for ids
2 participants