Add darwin configuration into

This commit is contained in:
Laurent Gueret
2026-02-11 13:15:26 +01:00
parent 80e5d0b8b5
commit e75b09a750
71 changed files with 562 additions and 151 deletions
+21
View File
@@ -0,0 +1,21 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.networks.dns;
in
{
options.os.networks.dns = {
enable = mkEnableOption "System dns service";
};
config = mkIf cfg.enable {
services.resolved.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
}