.github
.vscode
docs
hydra
keys
lib
modules
pkgs
systems
artemision
palatine-hill
attic
docker
haproxy
acme.nix
configuration.nix
default.nix
firewall.nix
gitea.nix
hardware-changes.nix
hardware.nix
hydra.nix
loki.nix
minio.nix
networking.nix
nextcloud.nix
postgresql.nix
samba.nix
secrets.yaml
vars.nix
zfs.nix
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
43 lines
875 B
Nix
43 lines
875 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
networking = {
|
|
hostId = "dc2f9781";
|
|
useDHCP = false;
|
|
};
|
|
|
|
systemd.network = {
|
|
enable = true;
|
|
networks = {
|
|
# enable DHCP for primary ethernet adapter
|
|
"10-lan" = {
|
|
matchConfig.Name = "eno1";
|
|
address = [ "192.168.76.2/24" ];
|
|
routes = [ { Gateway = "192.168.76.1"; } ];
|
|
networkConfig = {
|
|
IPv4Forwarding = true;
|
|
IPv6Forwarding = true;
|
|
};
|
|
linkConfig.RequiredForOnline = "routable";
|
|
};
|
|
# default lan settings
|
|
"60-def-lan" = {
|
|
matchConfig.type = "ether";
|
|
networkConfig = {
|
|
DHCP = "ipv4";
|
|
IPv4Forwarding = true;
|
|
IPv6Forwarding = true;
|
|
};
|
|
#routes = [ { routeConfig.Gateway = "192.168.76.1"; } ];
|
|
linkConfig.RequiredForOnline = "no";
|
|
};
|
|
};
|
|
};
|
|
}
|