nixos-config/modules/networking/default.nix

36 lines
583 B
Nix
Raw Normal View History

2024-02-05 11:46:52 +01:00
{
pkgs,
config,
lib,
...
2022-03-01 22:19:03 +01:00
}:
2024-02-05 11:46:52 +01:00
with lib;
let
2022-03-01 22:19:03 +01:00
cfg = config.eboskma.networking;
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 {
environment.systemPackages = with pkgs; [
nmap
nmap-formatter
];
2021-12-06 09:58:39 +01:00
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = config.networking.enableIPv6;
2021-12-06 09:58:39 +01:00
publish = {
enable = true;
domain = true;
hinfo = true;
userServices = true;
workstation = true;
2021-12-06 09:58:39 +01:00
};
};
2021-11-21 19:07:12 +01:00
};
}