reorganisation

This commit is contained in:
2026-11-07 11:47:46 +00:00
parent aa20bae49c
commit 4d999a7b2a
13 changed files with 37 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
{...}: {
# Define flake part nixosModule "networking"
flake.nixosModules.networking = {...}: {
# Normal nix code
networking = {
# Enable networkManager
networkmanager = {
enable = true;
# Disable router dns
dns = "none";
};
# cloudflare nameservers
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
# disable firewall
firewall.enable = false;
};
# Disable "wait-online" target, makes connecting to network
# async on boot
systemd.services.NetworkManager-wait-online.enable = false;
};
}