This commit is contained in:
4DBug
2026-02-04 16:43:43 -06:00
parent 37ff9e91ff
commit 186ca3cfbf
31 changed files with 824 additions and 1279 deletions

25
modules/network.nix Normal file
View File

@@ -0,0 +1,25 @@
{ config, pkgs, device, ... }:
{
networking = {
hostName = if (device == "server") then "box" else "nix";
networkmanager.enable = true;
nameservers = ["1.1.1.1" "1.0.0.1"];
};
services = {
cloudflare-warp.enable = (device == "laptop");
openssh = {
enable = true;
settings = {
PrintMotd = true;
X11Forwarding = true;
AllowTcpForwarding = true;
};
};
};
}