dmesg: let me use it without sudo

This commit is contained in:
Kate 2025-06-04 13:54:41 +02:00
parent 54aa953f84
commit b2907f9c71

10
nixos/configs/dmesg.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs, lib, ... }:
{
security.wrappers."dmesg" = {
owner = "root";
group = "wheel";
source = lib.getExe' pkgs.util-linux "dmesg";
capabilities = "cap_syslog+ep";
permissions = "u+r,g+rx,o+r";
};
}