services.openssh.enable = true; together with networking.firewall.allowedTCPPorts = [ 22 ]; is repeated in each sshd host:
hosts/T400/configuration.nix
hosts/MacPro31/configuration.nix
hosts/RPi5/configuration.nix
modules/ssh.nix (imported by all three) currently only carries the hardening settings, not the enable/port.
Impact
Drift risk: the listening service and its firewall port are declared per-host instead of once, so they can diverge.
Suggested fix
Move services.openssh.enable = true; and networking.firewall.allowedTCPPorts = [ 22 ]; into modules/ssh.nix, so importing the module both hardens and enables sshd. Drop the per-host duplicates.
## Problem
`services.openssh.enable = true;` together with `networking.firewall.allowedTCPPorts = [ 22 ];` is repeated in each sshd host:
- `hosts/T400/configuration.nix`
- `hosts/MacPro31/configuration.nix`
- `hosts/RPi5/configuration.nix`
`modules/ssh.nix` (imported by all three) currently only carries the hardening settings, not the enable/port.
## Impact
Drift risk: the listening service and its firewall port are declared per-host instead of once, so they can diverge.
## Suggested fix
Move `services.openssh.enable = true;` and `networking.firewall.allowedTCPPorts = [ 22 ];` into `modules/ssh.nix`, so importing the module both hardens and enables sshd. Drop the per-host duplicates.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
services.openssh.enable = true;together withnetworking.firewall.allowedTCPPorts = [ 22 ];is repeated in each sshd host:hosts/T400/configuration.nixhosts/MacPro31/configuration.nixhosts/RPi5/configuration.nixmodules/ssh.nix(imported by all three) currently only carries the hardening settings, not the enable/port.Impact
Drift risk: the listening service and its firewall port are declared per-host instead of once, so they can diverge.
Suggested fix
Move
services.openssh.enable = true;andnetworking.firewall.allowedTCPPorts = [ 22 ];intomodules/ssh.nix, so importing the module both hardens and enables sshd. Drop the per-host duplicates.