From c945e4db53337a0bb71b593bf9a2f2689669fce3 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 5 Sep 2024 11:51:27 +0000 Subject: [PATCH] nixos/installation-device: make openssh settings a default - as the comment above already indicates - neither OpenSSH nor PermitRootLogin are really required for a working installation device, hence making it easier to change --- nixos/modules/profiles/installation-device.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 7e22d4b6b684..a4e5a4aac790 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -74,8 +74,8 @@ with lib; # installation device for head-less systems i.e. arm boards by manually # mounting the storage in a different system. services.openssh = { - enable = true; - settings.PermitRootLogin = "yes"; + enable = mkDefault true; + settings.PermitRootLogin = mkDefault "yes"; }; # Enable wpa_supplicant, but don't start it by default.