Files
.github
.vscode
docs
hydra
keys
lib
modules
systems
artemision
bob
jeeves
jeeves-jr
palatine-hill
attic
docker
keys
attic.nix
configuration.nix
default.nix
docker.nix
hardware.nix
hydra.nix
minio.nix
networking.nix
nextcloud.nix
secrets.yaml
zfs.nix
rhapsody-in-green
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
checks.nix
flake.lock
flake.nix
shell.nix
sops-mergetool.sh
statix.toml
treefmt.toml
nix-dotfiles/systems/palatine-hill/networking.nix
2024-06-01 15:49:37 +00:00

39 lines
796 B
Nix

{
config,
lib,
pkgs,
...
}:
{
networking = {
hostId = "dc2f9781";
firewall.enable = false;
};
systemd.network = {
enable = true;
networks = {
# enable DHCP for primary ethernet adapter
"10-lan" = {
matchConfig.Name = "eno1";
address = [ "192.168.76.2/24" ];
routes = [ { routeConfig.Gateway = "192.168.76.1"; } ];
networkConfig.IPForward = "yes";
linkConfig.RequiredForOnline = "routable";
};
# default lan settings
"60-def-lan" = {
matchConfig.type = "ether";
networkConfig = {
DHCP = "ipv4";
IPForward = "yes";
};
#routes = [ { routeConfig.Gateway = "192.168.76.1"; } ];
linkConfig.RequiredForOnline = "no";
};
};
};
}