2022-04-27 00:21:19 +02:00
|
|
|
{ pkgs
|
|
|
|
, config
|
|
|
|
, lib
|
|
|
|
, ...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.networking;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2021-11-21 19:07:12 +01:00
|
|
|
options.eboskma.networking = {
|
|
|
|
enable = mkEnableOption "activate networing settings";
|
|
|
|
};
|
|
|
|
|
2022-05-03 18:17:38 +02:00
|
|
|
config = mkIf cfg.enable {
|
2021-12-10 20:11:36 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
nmap
|
|
|
|
nmap-formatter
|
|
|
|
];
|
|
|
|
|
2021-12-06 09:58:39 +01:00
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
2023-12-20 11:40:33 +01:00
|
|
|
nssmdns4 = true;
|
|
|
|
nssmdns6 = config.networking.enableIPv6;
|
2021-12-06 09:58:39 +01:00
|
|
|
publish = {
|
|
|
|
enable = true;
|
|
|
|
domain = true;
|
2023-12-20 11:40:33 +01:00
|
|
|
hinfo = true;
|
2021-12-10 10:53:40 +01:00
|
|
|
userServices = true;
|
2023-12-20 11:40:33 +01:00
|
|
|
workstation = true;
|
2021-12-06 09:58:39 +01:00
|
|
|
};
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
}
|