summaryrefslogtreecommitdiffstats
path: root/systems/dule
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-23 05:17:51 +0000
committertv <tv@krebsco.de>2026-11-23 05:17:51 +0000
commit9229a06cd9c61259c3f87fbc9069b9e63ec29e1b (patch)
treec5b5a515b774872cb92f2d903e9e39784b8dd9d1 /systems/dule
parent715f47635873cc8569b1afa6e878980be9de11bf (diff)
dule: add back what evaluates
Diffstat (limited to 'systems/dule')
-rw-r--r--systems/dule/config.nix43
1 files changed, 42 insertions, 1 deletions
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;
}