profiles/common-dns,profiles/common: Enable systemd-resolved everywhere
This commit is contained in:
parent
552d2a964c
commit
75777aa68c
@ -52,6 +52,9 @@ let
|
||||
{};
|
||||
in
|
||||
secrets;
|
||||
|
||||
# Enable clerie common config
|
||||
profiles.clerie.common.enable = true;
|
||||
})
|
||||
|
||||
# Config to be applied to every host
|
||||
|
22
profiles/common-dns/default.nix
Normal file
22
profiles/common-dns/default.nix
Normal file
@ -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";
|
||||
|
||||
};
|
||||
}
|
19
profiles/common/default.nix
Normal file
19
profiles/common/default.nix
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user