modules/firewall: toString ssh port

I knew I should've done it...
This commit is contained in:
NotAShelf 2024-08-18 16:25:09 +03:00
parent e4c834d3a6
commit 4a89119653
No known key found for this signature in database
GPG key ID: AF26552424E53993

View file

@ -1,7 +1,7 @@
{config, ...}: let
# Assume first port in the list is the default port. This makes sense only if openssh
# is bound to a single port. This is, ultimately, non-deterministic.
sshPort = builtins.elemAt config.services.openssh.ports 0;
sshPort = toString (builtins.elemAt config.services.openssh.ports 0);
in {
networking = {
firewall.enable = true; # defaults to true, but enable anyway