networking.useDHCP

This commit is contained in:
Nicolas Jeannerod 2024-11-20 16:48:36 +01:00
parent 9888ae0d07
commit 0749bda96c
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
5 changed files with 4 additions and 17 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
let let
inherit (lib) mkOption; inherit (lib) mkOption mkDefault;
in in
{ {
@ -23,6 +23,9 @@ in
hostName = config.procolix.vm.name; hostName = config.procolix.vm.name;
domain = "procolix.com"; domain = "procolix.com";
## REVIEW: Do we actually need that, considering that we have static IPs?
useDHCP = mkDefault true;
interfaces = { interfaces = {
eth0 = { eth0 = {
ipv4 = { ipv4 = {

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/3802a66d-e31a-4650-86f3-b51b11918853"; device = "/dev/disk/by-uuid/3802a66d-e31a-4650-86f3-b51b11918853";
@ -10,6 +8,4 @@
device = "/dev/disk/by-uuid/2CE2-1173"; device = "/dev/disk/by-uuid/2CE2-1173";
fsType = "vfat"; fsType = "vfat";
}; };
networking.useDHCP = lib.mkDefault true;
} }

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/119863f8-55cf-4e2f-ac17-27599a63f241"; device = "/dev/disk/by-uuid/119863f8-55cf-4e2f-ac17-27599a63f241";
@ -14,6 +12,4 @@
"dmask=0022" "dmask=0022"
]; ];
}; };
networking.useDHCP = lib.mkDefault true;
} }

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/833ac0f9-ad8c-45ae-a9bf-5844e378c44a"; device = "/dev/disk/by-uuid/833ac0f9-ad8c-45ae-a9bf-5844e378c44a";
@ -14,6 +12,4 @@
"dmask=0022" "dmask=0022"
]; ];
}; };
networking.useDHCP = lib.mkDefault true;
} }

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/a46a9c46-e32b-4216-a4aa-8819b2cd0d49"; device = "/dev/disk/by-uuid/a46a9c46-e32b-4216-a4aa-8819b2cd0d49";
@ -14,6 +12,4 @@
"dmask=0022" "dmask=0022"
]; ];
}; };
networking.useDHCP = lib.mkDefault true;
} }