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

How to import nix output into nixos configuration? #15

Open
PhilippWoelfel opened this issue Jul 1, 2022 · 2 comments
Open

How to import nix output into nixos configuration? #15

PhilippWoelfel opened this issue Jul 1, 2022 · 2 comments

Comments

@PhilippWoelfel
Copy link

I would like to create a file by piping the output of wg-bond nix ... into wg.nix, and then import wg.nix into my nixos-configuraiton. I have not figured out how to do that, because the output of wg-bond nix ... is not a nix expression, so import... doesn't work. Am I missing something obvious? Perhaps some documentation could be added?

@cab404
Copy link
Owner

cab404 commented Jul 1, 2022

what does it output? (without the keys)

@cab404
Copy link
Owner

cab404 commented Jul 1, 2022

ohh, okay

networking.wg-quick.interfaces."tt"={privateKey="OGr+/yHAMnQ6YAlJlBp0GeQW9hw/oH2p/3GAumKFIFc=";address=["10.0.0.1"];peers=[];};

something broke our nix export

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

No branches or pull requests

2 participants