diff --git a/default.nix b/default.nix index 586ef47f..d69db80c 100644 --- a/default.nix +++ b/default.nix @@ -33,6 +33,7 @@ let ./modules/busybox.nix ./modules/hostname.nix ./modules/kernel + ./modules/klogd.nix device.module liminix-config ./modules/s6 diff --git a/modules/klogd.nix b/modules/klogd.nix new file mode 100644 index 00000000..3c2cb027 --- /dev/null +++ b/modules/klogd.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: +let + inherit (pkgs.liminix.services) longrun; +in { + config.services.klogd = longrun { + name = "klogd"; + run = '' + echo "1 2 1 8" > /proc/sys/kernel/printk + cat /proc/kmsg + ''; + finish = '' + echo "8 4 1 8" > /proc/sys/kernel/printk + ''; + }; +}