This fixes inherits and library functions usage, to inherit them explicitely at top level of the file.
23 lines
462 B
Nix
23 lines
462 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
in {
|
|
config = mkIf (!config.local.profiles.server.enable) {
|
|
networking = {
|
|
inherit (config.local.systemVars) hostName;
|
|
nameservers = ["1.1.1.1" "1.0.0.1"];
|
|
networkmanager = {
|
|
enable = true;
|
|
dns = "systemd-resolved";
|
|
wifi.powersave = true;
|
|
};
|
|
};
|
|
services.resolved = {
|
|
enable = true;
|
|
dnsovertls = "opportunistic";
|
|
};
|
|
};
|
|
}
|