From 04ef7e498a748c0daa6842515132fe2c4c967eb2 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 24 Oct 2023 21:07:12 +0200 Subject: [PATCH] sombrero: Add `network` module --- hosts/sombrero/configuration.nix | 17 ----------------- hosts/sombrero/modules/network/default.nix | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 hosts/sombrero/modules/network/default.nix diff --git a/hosts/sombrero/configuration.nix b/hosts/sombrero/configuration.nix index 741263a..6e68b73 100644 --- a/hosts/sombrero/configuration.nix +++ b/hosts/sombrero/configuration.nix @@ -55,23 +55,6 @@ # useXkbConfig = true; # use xkbOptions in tty. # }; - networking = { - hostName = "sombrero"; - - defaultGateway = "192.168.50.1"; - nameservers = [ "8.8.8.8" ]; - interfaces = { - eth0 = { - ipv4 = { - addresses = [{ - address = "192.168.50.200"; - prefixLength = 24; - }]; - }; - }; - }; - }; - users = { mutableUsers = false; diff --git a/hosts/sombrero/modules/network/default.nix b/hosts/sombrero/modules/network/default.nix new file mode 100644 index 0000000..95af1e9 --- /dev/null +++ b/hosts/sombrero/modules/network/default.nix @@ -0,0 +1,18 @@ +{ + networking = { + hostName = "sombrero"; + + defaultGateway = "192.168.50.1"; + nameservers = [ "8.8.8.8" ]; + interfaces = { + eth0 = { + ipv4 = { + addresses = [{ + address = "192.168.50.200"; + prefixLength = 24; + }]; + }; + }; + }; + }; +}