From df7ad70cf719e634135c6b6e4607ab3a3a52797d Mon Sep 17 00:00:00 2001 From: Wekuz Date: Fri, 1 May 2026 15:43:17 +0300 Subject: [PATCH] Allow btop to see GPU without as root --- hosts/plexy/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/plexy/default.nix b/hosts/plexy/default.nix index 62d0e70..f9325a6 100644 --- a/hosts/plexy/default.nix +++ b/hosts/plexy/default.nix @@ -55,6 +55,14 @@ ]; }; + security.wrappers.btop = { + enable = true; + owner = "root"; + group = "root"; + source = "${pkgs.btop}/bin/btop"; + capabilities = "cap_perfmon=ep"; + }; + time.timeZone = "Europe/Tallinn"; networking = {