From b2ec9599373c7e0f5428694c5712c8fc0be06264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 14 Mar 2024 09:35:13 +0100 Subject: Load of updates and module simplification --- nixos/machine/dean.nix | 68 ++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 38 deletions(-) (limited to 'nixos/machine/dean.nix') diff --git a/nixos/machine/dean.nix b/nixos/machine/dean.nix index 906881f..0a97e33 100644 --- a/nixos/machine/dean.nix +++ b/nixos/machine/dean.nix @@ -1,46 +1,38 @@ -{ - config, - lib, - pkgs, - ... -}: -with lib; { - config = { - cynerd = { - openvpn = { - oldpersonal = true; - }; - monitoring.speedtest = true; +{pkgs, ...}: { + cynerd = { + openvpn = { + oldpersonal = true; }; + monitoring.speedtest = true; + }; - networking = { - bridges = { - brlan = { - interfaces = [ - "eth0" - "lan1" - "lan2" - "lan3" - "lan4" - ]; - }; + networking = { + bridges = { + brlan = { + interfaces = [ + "eth0" + "lan1" + "lan2" + "lan3" + "lan4" + ]; }; - dhcpcd.allowInterfaces = ["brlan"]; }; + dhcpcd.allowInterfaces = ["brlan"]; + }; - swapDevices = [ - { - device = "/var/swap"; - priority = 1; - } - ]; + swapDevices = [ + { + device = "/var/swap"; + priority = 1; + } + ]; - environment.systemPackages = with pkgs; [ - #openocd - tio - ]; + environment.systemPackages = with pkgs; [ + #openocd + tio + ]; - # TODO: ubootTools build is broken! - firmware.environment.enable = false; - }; + # TODO: ubootTools build is broken! + firmware.environment.enable = false; } -- cgit v1.2.3