[NixOS] Move ssh functionality into its own file

This commit is contained in:
2023-08-02 17:54:14 +00:00
parent fd90a0f638
commit d2f86e197d
3 changed files with 26 additions and 23 deletions

20
nixos/ssh.nix Normal file
View File

@@ -0,0 +1,20 @@
{ config, pkgs, ... }:
{
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
domain = true;
workstation = true;
userServices = true;
addresses = true;
hinfo = true;
};
extraServiceFiles = {
ssh = "''${pkgs.avahi}/etc/avahi/services/ssh.service";
};
};
services.openssh.enable = true;
}