treewide: config/nixos/network -> modules/nix/core/networking

This commit is contained in:
Anthony Rodriguez 2025-01-14 13:43:23 +01:00
parent 07a9c5f510
commit a734372732
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 13 additions and 19 deletions

View file

@ -1,11 +1,7 @@
{
imports = [
./nix
./network
./programs
./services
];
}

View file

@ -1,14 +0,0 @@
{config, ...}: {
networking = {
inherit (config.local.systemVars) hostName;
networkmanager = {
enable = true;
dns = "systemd-resolved";
wifi.powersave = true;
};
};
services.resolved = {
enable = true;
dnsovertls = "opportunistic";
};
}

View file

@ -4,6 +4,18 @@
...
}: {
config = lib.mkIf (!config.local.profiles.server.enable) {
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
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";
};
};
}