dmesg: let me use it without sudo
This commit is contained in:
parent
54aa953f84
commit
b2907f9c71
1 changed files with 10 additions and 0 deletions
10
nixos/configs/dmesg.nix
Normal file
10
nixos/configs/dmesg.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue