nixos-config/modules/networking/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

35 lines
583 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.networking;
in
{
options.eboskma.networking = {
enable = mkEnableOption "activate networing settings";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
nmap
nmap-formatter
];
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = config.networking.enableIPv6;
publish = {
enable = true;
domain = true;
hinfo = true;
userServices = true;
workstation = true;
};
};
};
}