sldsalkjsadlkj

This commit is contained in:
2023-06-22 19:19:55 +02:00
parent 1b798e514b
commit 8a7b7f01d8
4 changed files with 35 additions and 0 deletions

View File

@@ -50,8 +50,10 @@
#virtualisation.oci-containers.backend = "podman"; # default
# Networking
/**/
networking.networkmanager.enable = true;
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.interfaces.enp3s0.wakeOnLan.enable = true;
networking.interfaces.enp3s0.ipv4.addresses = [
{ address = "192.168.1.7"; prefixLength = 24; }
];
@@ -63,8 +65,29 @@
"1.1.1.1"
];
#networking.useDHCP = true;
/** /
systemd.network.enable = true;
systemd.network.networks."50-static" = {
matchConfig.Name = "enp3s0";
address = [ "192.168.1.7/24" ];
gateway = [ "192.168.1.254" ];
dns = [ "192.168.1.254" "8.8.8.8" "1.1.1.1" ];
domains = [ config.networking.domain ]; # set by flake
networkConfig.IPv6AcceptRA = false;
linkConfig.RequiredForOnline = "routable"; # dependency for network-online.target
};
/** /
systemd.network.networks."51-dhcp" = {
matchConfig.Name = "enp3s0";
networkConfig.DHCP = "yes";
networkConfig.IPv6AcceptRA = true;
linkConfig.RequiredForOnline = "no"; # not always connected and not required to be online
};
/**/
#TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18
# Installed system packages
environment.systemPackages = with pkgs; [
cage