holy shit im stupid, a lot of changes.
also added the configuration bc idk how to add only certain files but whatever
This commit is contained in:
@@ -3,24 +3,24 @@ let
|
||||
cfg = config.homelab.networking.core;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
imports = [
|
||||
./firewall.nix
|
||||
];
|
||||
imports = [
|
||||
./firewall.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
};
|
||||
|
||||
networking.extraHosts = lib.concatMapStringsSep "\n" (
|
||||
extraHosts = lib.concatMapStringsSep "\n" (
|
||||
host: "${host.ip_address} ${host.hostname}"
|
||||
) cfg.extraHosts;
|
||||
|
||||
nftables.enable = true;
|
||||
|
||||
nameservers = config.core.nameservers;
|
||||
nameservers = cfg.nameservers;
|
||||
};
|
||||
|
||||
services.resolved = {
|
||||
|
||||
Reference in New Issue
Block a user