From b2907f9c716f286563a6e2345ff32c2642bcdb17 Mon Sep 17 00:00:00 2001 From: Kate Adkins Date: Wed, 4 Jun 2025 13:54:41 +0200 Subject: [PATCH] dmesg: let me use it without sudo --- nixos/configs/dmesg.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nixos/configs/dmesg.nix diff --git a/nixos/configs/dmesg.nix b/nixos/configs/dmesg.nix new file mode 100644 index 0000000..0402f58 --- /dev/null +++ b/nixos/configs/dmesg.nix @@ -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"; + }; +}