summaryrefslogtreecommitdiff
path: root/hosts/cirrus
diff options
context:
space:
mode:
authorGrigory Shipunov2022-06-18 06:07:26 +0200
committerGrigory Shipunov2022-06-18 06:32:05 +0200
commit16da95bca0c6daecca412c7b883e4cf2aa6397ba (patch)
treeb8507c52c9a8ae291a5d3bea4e404bd218f32ac7 /hosts/cirrus
parentd8bf46c22d39bbe8db8f74afa5188fe069cf0199 (diff)
cirrus: use networkd
Diffstat (limited to 'hosts/cirrus')
-rw-r--r--hosts/cirrus/configuration.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/hosts/cirrus/configuration.nix b/hosts/cirrus/configuration.nix
index 0f4182e..0054a64 100644
--- a/hosts/cirrus/configuration.nix
+++ b/hosts/cirrus/configuration.nix
@@ -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";