1
1
Fork 1
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:
oddlama 2023-12-19 01:15:51 +01:00
parent 054103a004
commit eafe3b673c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 74 additions and 43 deletions

View file

@ -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;