finally system boots with new config

need to add all my stuff btw
This commit is contained in:
2026-07-11 23:14:30 -05:00
parent bbdb6339b0
commit c5209b0d90
17 changed files with 578 additions and 252 deletions
+29 -29
View File
@@ -1,38 +1,38 @@
{ ... }:
{ config, lib, ... }:
let
cfg = config.workstation.networking.core;
in
{
imports = [
./firewall.nix
];
networking = {
networkmanager = {
config = {
networking = {
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
extraHosts = lib.concatMapStringsSep "\n" (
host: "${host.ip_address} ${host.hostname}"
) cfg.extraHosts;
nftables.enable = true;
nameservers = cfg.nameservers;
};
services.resolved = {
enable = true;
dns = "systemd-resolved";
settings.Resolve = {
dnssec = "true";
DNSOverTLS = "true";
domains = [ "~." ];
fallbackDns = cfg.nameservers;
};
};
extraHosts = "192.168.1.60 laptop";
nftables.enable = true;
nameservers = [
"192.168.1.193" # Pi-hole
"1.1.1.1" # Cloudflare
"1.0.0.1" # Cloudflare (Secondary)
];
};
services.resolved = {
enable = true;
settings.Resolve = {
dnssec = "true";
DNSOverTLS = "true";
domains = [ "~." ];
fallbackDns = [
"192.168.1.193" # Pi-hole
"1.1.1.1" # Cloudflare
"1.0.0.1" # Cloudflare (Secondary)
];
};
};
}
+7 -10
View File
@@ -1,17 +1,14 @@
{ ... }:
{ config, ... }:
let
cfg = config.workstation.networking.core.firewall;
in
{
networking.firewall = {
enable = true;
allowPing = true;
allowPing = cfg.allowPing;
allowedTCPPorts = [
22
80
];
allowedUDPPorts = [
53
];
allowedTCPPorts = cfg.ports.tcp;
allowedUDPPorts = cfg.ports.udp;
};
}