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

pass in an argument #144

Open
shmish111 opened this issue Feb 26, 2021 · 1 comment
Open

pass in an argument #144

shmish111 opened this issue Feb 26, 2021 · 1 comment
Labels
help wanted PR very welcome! triaged Discussed in-team, actionable

Comments

@shmish111
Copy link

shmish111 commented Feb 26, 2021

I would like to pass in an argument to the build and deploy in order to be able to specify which environment I want to deploy. This is not the same as using tags because all environments are almost exactly the same and I often create and destroy environments, so I just want to pass a variable called env through the nix configuration. I therefore want my default.nix to be

{ env }:
let
...
in
{
  "webserver" = { inherit env; ...}
}
@srhb srhb added triaged Discussed in-team, actionable help wanted PR very welcome! labels Nov 17, 2021
@srhb
Copy link
Contributor

srhb commented Nov 17, 2021

We will welcome help with this, but probably won't work on it ourselves. I think an --arg foo bar version that works much like the rest of the Nix tooling is fine and intuitive enough for Nix users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted PR very welcome! triaged Discussed in-team, actionable
Projects
None yet
Development

No branches or pull requests

2 participants