mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(guests): derive stable machine-id for containers; always start sshd in containers
This commit is contained in:
parent
054103a004
commit
eafe3b673c
6 changed files with 74 additions and 43 deletions
|
@ -1,6 +1,9 @@
|
|||
{lib, ...}: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
# In containers, this is true by default, but we don't want that
|
||||
# because we rely on ssh key generation for agenix
|
||||
startWhenNeeded = lib.mkForce false;
|
||||
authorizedKeysFiles = lib.mkForce ["/etc/ssh/authorized_keys.d/%u"];
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue