cirrus: use networkd
This commit is contained in:
parent
d8bf46c22d
commit
16da95bca0
2 changed files with 17 additions and 3 deletions
|
@ -16,8 +16,22 @@
|
|||
boot.loader.grub.efiSupport = true;
|
||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||
|
||||
zramSwap = { enable = true; algorithm = "zstd"; };
|
||||
networking.hostName = "cirrus"; # Define your hostname.
|
||||
zramSwap = { enable = true; algorithm = "zstd"; };
|
||||
|
||||
networking = {
|
||||
hostName = "cirrus"; # Define your hostname.
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."uplink" = {
|
||||
matchConfig = { Name = "enp1s0"; };
|
||||
networkConfig = {
|
||||
DHCP="yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
interfaces.enp1s0.useDHCP = true;
|
||||
hostName = "dishwasher"; # Define your hostname.
|
||||
useNetworkd = true;
|
||||
firewall.enable = false;
|
||||
firewall.enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
|
Loading…
Add table
Reference in a new issue