1
0

profiles/common-dns,profiles/common: Enable systemd-resolved everywhere

This commit is contained in:
clerie 2025-03-22 14:34:40 +01:00
parent 552d2a964c
commit 75777aa68c
4 changed files with 46 additions and 0 deletions

@ -52,6 +52,9 @@ let
{};
in
secrets;
# Enable clerie common config
profiles.clerie.common.enable = true;
})
# Config to be applied to every host

@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
{
options.profiles.clerie.common-dns = {
enable = mkEnableOption "Common dns config";
};
config = mkIf config.profiles.clerie.common-dns.enable {
# Use systemd-resolved everywhere
services.resolved.enable = true;
# Do not use any DNS servers as fallback
services.resolved.fallbackDns = [];
networking.networkmanager.dns = "systemd-networkd";
};
}

@ -0,0 +1,19 @@
{ config, lib, ... }:
with lib;
{
options.profiles.clerie.common = {
enable = mkEnableOption "Cleries common config";
};
config = mkIf config.profiles.clerie.common.enable {
profiles.clerie.common-dns.enable = true;
# Disabled while we are still in transition
#profiles.clerie.common-network.enable = true;
};
}

@ -3,6 +3,8 @@
{
imports = [
./common
./common-dns
./common-networking
./cybercluster-vm
./fem-net