numtide / system-manager

Manage system config using nix on any distro
MIT License
765 stars 21 forks source link

The option 'services.sshd' does not exist... #130

Open DrVoidest opened 1 month ago

DrVoidest commented 1 month ago

Describe the bug I am trying to configure ssh using system-manager and can't seem to find where you put it. I have tried under config, evironment, etc, and systemd.services. Since ssh stores its config under /etc/ssh/sshd_config I assume its supported.

To Reproduce

Steps to reproduce the behavior: Put anywhere in the config services.sshd.enable = true;

Expected behavior Enables an open ssh server.

System information

Ubuntu 24.04 - fresh install

Additional context

I would like to use it to replace old versions of ssh on legacy systems then set the ssh config. I am only testing this on Ubuntu now though.

r-vdp commented 5 days ago

Yeah, we need to include the ssh module from nixpkgs, or write a custom one, But neither is trivial currently. I'd be happy to review a PR for this though, or I might get to it at some point.

DrVoidest commented 5 days ago

I'm an inexperienced dev, but I will try taking a wack at it.