feat: add host device type metadata

This commit is contained in:
2026-04-21 01:42:32 +02:00
parent 4008fde198
commit 2572022349
6 changed files with 13 additions and 32 deletions
+3 -4
View File
@@ -3,13 +3,12 @@
flake.modules.nixos.openssh =
{
config,
hostType ? "desktop",
lib,
host ? {
isServer = false;
},
...
}:
let
isServer = hostType == "server";
hostUserNames = builtins.attrNames (
lib.filterAttrs (_: user: user.isNormalUser or false) config.users.users
);
@@ -17,7 +16,7 @@
{
services.openssh = {
enable = true;
openFirewall = host.isServer;
openFirewall = isServer;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;