[#33] Refactored existing network config #34

Merged
nerf merged 1 commit from nerf/nixConfig:nerf/networkConfig into main 2024-04-03 13:30:20 +00:00
Owner

Refactored existing network config, in a way that one only needs to supply an ip address.
No ipv6 support as of yet. (As if we would get v6 support in the next 15 years).
Also we need to get our interface names consistent in the Xen config. It shouldn't be
hard to extend this module by an optional setting to set the name though.

Refactored existing network config, in a way that one only needs to supply an ip address. No ipv6 support as of yet. (As if we would get v6 support in the next 15 years). Also we need to get our interface names consistent in the Xen config. It shouldn't be hard to extend this module by an optional setting to set the name though.
nerf added the
Kind/Enhancement
Priority
Medium
labels 2024-03-31 23:44:21 +00:00
nerf added 1 commit 2024-03-31 23:44:22 +00:00
Gonne requested changes 2024-04-01 14:54:08 +00:00
Dismissed
@ -0,0 +18,4 @@
;
cfg = config.vmNetwork;
in {
imports = [];
Owner

Ist es üblich oder notwendig, leere Imports mit hinzuschreiben?

Ist es üblich oder notwendig, leere Imports mit hinzuschreiben?
Author
Owner

I'm not sure if it is required (I would guess no). But I kind of find it idiomatic to put it there. We should agree if we do it or not and then enforce it across the whole codebase.

I'm not sure if it is required (I would guess no). But I kind of find it idiomatic to put it there. We should agree if we do it or not and then enforce it across the whole codebase.
Owner

I don't mind. One precedent is https://nixos.wiki/wiki/NixOS_modules#Example which leaves it out. 🤷

I don't mind. One precedent is https://nixos.wiki/wiki/NixOS_modules#Example which leaves it out. 🤷
@ -0,0 +41,4 @@
addrLastInt = builtins.toString (toInt (last addr) + 127);
in
concatStringsSep "." (addrInit ++ [addrLastInt]);
nameservers = ["130.83.2.22" "130.83.56.60" "130.83.22.60" "130.82.22.63"];
Owner

Hierzu sollten wir die Quelle https://www.hrz.tu-darmstadt.de/services/it_services/nameserver_dns/index.de.jsp verlinken. Aus dieser geht hervor, dass die Zeile in Reihenfolge der Hostnamen

      nameservers = ["130.83.22.63" "130.83.22.60" "130.83.56.60"]; 

lauten sollte. Der Server unter 130.83.2.22 hingegen liefert mir keine Antworten (mehr).

Hierzu sollten wir die Quelle https://www.hrz.tu-darmstadt.de/services/it_services/nameserver_dns/index.de.jsp verlinken. Aus dieser geht hervor, dass die Zeile in Reihenfolge der Hostnamen ``` nameservers = ["130.83.22.63" "130.83.22.60" "130.83.56.60"]; ``` lauten sollte. Der Server unter `130.83.2.22` hingegen liefert mir keine Antworten (mehr).
nerf marked this conversation as resolved
nerf force-pushed nerf/networkConfig from bfc36a9a44 to cabd210aa6 2024-04-02 14:02:49 +00:00 Compare
nerf added the
Reviewed
Confirmed
label 2024-04-02 14:12:01 +00:00
Gonne was assigned by nerf 2024-04-02 14:12:12 +00:00
nerf self-assigned this 2024-04-02 14:12:12 +00:00
nerf requested review from Gonne 2024-04-02 14:12:27 +00:00
Gonne approved these changes 2024-04-02 17:52:57 +00:00
nerf merged commit cabd210aa6 into main 2024-04-03 13:30:20 +00:00
nerf deleted branch nerf/networkConfig 2024-04-03 13:30:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fachschaft/nixConfig#34
No description provided.