From 9229a06cd9c61259c3f87fbc9069b9e63ec29e1b Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 23 Nov 2026 05:17:51 +0000 Subject: dule: add back what evaluates --- systems/dule/config.nix | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) (limited to 'systems') diff --git a/systems/dule/config.nix b/systems/dule/config.nix index 0731044b..fc12e172 100644 --- a/systems/dule/config.nix +++ b/systems/dule/config.nix @@ -1,7 +1,45 @@ -{ config, pkgs, ... }: { +{ config, lib, pkgs, ... }: { imports = [ ../../configs/hw/tiny5.nix + ../../configs/bluetooth.nix ../../configs/initrd/sshd.nix + ../../configs/retiolum.nix + ../../configs/wiregrill.nix + + ../../configs/earlyoom.nix + + ../../configs/networkd.nix + + { + # EIZO FlexScan EV2740X + services.udev.extraRules = /* sh */ '' + SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="056d", ATTRS{idProduct}=="4080", \ + GROUP="plugdev", MODE="0660" + ''; + + users.groups.plugdev = {}; # https://github.com/NixOS/nixpkgs/pull/272506 + } + + { + # for rigol-dho804 + services.ntpd-rs.enable = true; + services.ntpd-rs.settings = { + observability = { + log-level = "warn"; + }; + server = [ + { + listen = "0.0.0.0:123"; + } + ]; + }; + services.timesyncd.enable = lib.mkForce false; + hrm.nftables.tables.filter.chains.input.rules.ntp = { + iifname = "eth0"; + udp.dport = [ "ntp" ]; + verdict = "accept"; + }; + } ]; boot.kernelPackages = pkgs.linuxPackages_latest; @@ -35,4 +73,7 @@ krebs.build.host = config.krebs.hosts.dule; system.stateVersion = "23.05"; + + zramSwap.enable = true; + zramSwap.swapDevices = 1; } -- cgit v1.3.1