I am setting up a local NixOS container to separate some processes from my main machine. I am entering the container using machinectl shell
, so I do not need a login prompt at the “console”, yet there is a agetty
process running:
~ $ machinectl shell jojo@dev /usr/bin/env ps -A
Connected to machine dev. Press ^] three times within 1s to exit session.
PID TTY TIME CMD
1 ? 00:00:00 systemd
135 ? 00:00:00 systemd-journal
217 ? 00:00:00 systemd-oomd
221 ? 00:00:00 nsncd
234 ? 00:00:00 systemd-logind
282 ? 00:00:00 dbus-daemon
293 pts/0 00:00:00 agetty
5788 pts/1 00:00:00 ps
5791 ? 00:00:00 systemd
5792 ? 00:00:00 (sd-pam)
5799 pts/1 00:00:00 (sd-pam)
Connection to machine dev terminated.
In the interest of running as few processes there as possible, is there a (easy, supported) way to disable the agetty
there?