summary refs log tree commit diff
path: root/nixos/modules/programs/atop.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2021-09-22 12:38:19 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2021-09-22 12:38:19 +0200
commitb53a5b91b98dd6669c45a0d9c539f210a3f34558 (patch)
treeae1d2d9bde41812964a48474f0698873d8aaaa5e /nixos/modules/programs/atop.nix
parent196621010c23b201735881a8512abf6a1999d037 (diff)
downloadnixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.tar
nixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.tar.gz
nixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.tar.bz2
nixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.tar.lz
nixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.tar.xz
nixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.tar.zst
nixpkgs-b53a5b91b98dd6669c45a0d9c539f210a3f34558.zip
nixos/atop: fix broken wrapper
The setuid,owner,group options are mandatory after #126289.
Diffstat (limited to 'nixos/modules/programs/atop.nix')
-rw-r--r--nixos/modules/programs/atop.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/nixos/modules/programs/atop.nix b/nixos/modules/programs/atop.nix
index b45eb16e3ea..918c228b3f5 100644
--- a/nixos/modules/programs/atop.nix
+++ b/nixos/modules/programs/atop.nix
@@ -141,8 +141,15 @@ in
             // mkService cfg.atopgpu.enable "atopgpu" [ atop ];
           timers = mkTimer cfg.atopRotateTimer.enable "atop-rotate" [ atop ];
         };
-      security.wrappers =
-        lib.mkIf cfg.setuidWrapper.enable { atop = { source = "${atop}/bin/atop"; }; };
+
+      security.wrappers = lib.mkIf cfg.setuidWrapper.enable {
+        atop =
+          { setuid = true;
+            owner = "root";
+            group = "root";
+            source = "${atop}/bin/atop";
+          };
+      };
     }
   );
 }