From 0f6c4525b2100e30fadd5d8193b3f91aabd167f3 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 29 May 2026 16:59:00 +0300 Subject: [PATCH] Update mini-pc.nix --- nixos/hosts/mini-pc.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/mini-pc.nix b/nixos/hosts/mini-pc.nix index 9903e54..53d5de0 100644 --- a/nixos/hosts/mini-pc.nix +++ b/nixos/hosts/mini-pc.nix @@ -10,7 +10,27 @@ networking = { hostName = "mini-pc"; - useDHCP = true; + useDHCP = false; + defaultGateway = "192.168.1.1"; + nameservers = [ + "192.168.1.1" + "1.1.1.1" + ]; + }; + + systemd.network = { + enable = true; + networks."10-lan" = { + matchConfig.Name = "en*"; + networkConfig = { + Address = "192.168.1.10/24"; + Gateway = "192.168.1.1"; + DNS = [ + "192.168.1.1" + "1.1.1.1" + ]; + }; + }; }; boot.loader.systemd-boot.enable = true;