-
Notifications
You must be signed in to change notification settings - Fork 155
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
feat(modules/home-manager): add support for configuring environment variables #615
feat(modules/home-manager): add support for configuring environment variables #615
Conversation
modules/home-manager/sops.nix
Outdated
Environment variables to set before calling sops-install-secrets. | ||
|
||
The values are placed in single quotes and not escaped any further to | ||
allow usage of command substitutions for more flexibility. To properly quote |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually true? I don't think systemd will do command substitution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't now about launchd, but it also looks to me that it should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That may not be true. I copied the description for the environment option from the NixOS module at modules/sops/default.nix.
I also have only tested the launchd code path. It does work on macOS. I do not have access to a NixOS linux system. Hopefully someone can test the systemd code path.
31b34ca
to
c8c892a
Compare
@SebTM could you test linux? |
Hey, sorry for the delay - I can test it but would appreciate a test-case/instructions? |
@SebTM for now it's enough if you just make sure it doesn't break your existing usage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've used this rebased on master and rebuild my workstation with it and can't spot any issues 🙏🏻
@mergify queue |
🛑 The pull request has been removed from the queue
|
@mergify rebase |
Added support for configuring environment variables before calling `sops-install-secrets`. Introduced a new `environment` option which allows specifying environment variables. Modified systemd service and launchd agent to use the specified environment variables.
✅ Branch has been successfully rebased |
c8c892a
to
7a8b208
Compare
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at d089e74 |
Add support for configuring environment variables before calling
sops-install-secrets
. Introduce a newenvironment
option which allows specifying environment variables. Modify systemd service and launchd agent to use the specified environment variables.