You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to make a docker image which operates exactly like nixos/nix, but I also want to start up sshd in the image. That requires a little bit of shenanigans (adding an ssh user, making the /var/empty dir) on top of the image defined in docker.nix. At the moment, I've copied + pasted docker.nix verbatim, but that seems like the wrong option.
Describe the solution you'd like
I'd like to refactor docker.nix in some way that I can twiddle knowbs to make it do what I want, but I'm not totally sure how to approach it, so I thought I'd ask advice before diving in.
Describe alternatives you've considered
Copy + paste, which works fine, but will be sad longer term
I've previously completed a proof of concept building a docker image using parts of NixOS: the etc and user setup bits, but not systemd. This solves the problem of composing images. It won't make adding ssh trivial because of the lack of systemd, but it will make composition of docker.nix and your own contents possible.
Currently I don't have the need or resources to complete it, but it isn't rocket science; just moving code between existing NixOS modules and adding one or two options to serve as interfaces between modules to decouple them.
On Wed, 4 Jan 2023 at 13:13, Robert Hensing ***@***.***> wrote:
I've previously completed a proof of concept building a docker image using
parts of NixOS: the etc and user setup bits, but not systemd. This solves
the problem of composing images. It won't make adding ssh trivial because
of the lack of systemd, but it will make composition of docker.nix and your
own contents possible.
- NixOS/nixpkgs#148456 <NixOS/nixpkgs#148456>
Currently I don't have the need or resources to complete it, but it isn't
rocket science; just moving code between existing NixOS modules and adding
one or two options to serve as interfaces between modules to decouple them.
—
Reply to this email directly, view it on GitHub
<#7550 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABN425PUUEGEYKFLH6GAM7TWQVZPHANCNFSM6AAAAAATQWIIZY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Is your feature request related to a problem? Please describe.
I'm trying to make a docker image which operates exactly like nixos/nix, but I also want to start up sshd in the image. That requires a little bit of shenanigans (adding an ssh user, making the /var/empty dir) on top of the image defined in docker.nix. At the moment, I've copied + pasted docker.nix verbatim, but that seems like the wrong option.
Describe the solution you'd like
I'd like to refactor docker.nix in some way that I can twiddle knowbs to make it do what I want, but I'm not totally sure how to approach it, so I thought I'd ask advice before diving in.
Describe alternatives you've considered
Copy + paste, which works fine, but will be sad longer term
Additional context
Please and thank you!
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: