diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2021-09-22 12:38:19 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2021-09-22 12:38:19 +0200 |
commit | b53a5b91b98dd6669c45a0d9c539f210a3f34558 (patch) | |
tree | ae1d2d9bde41812964a48474f0698873d8aaaa5e /nixos/modules/programs/atop.nix | |
parent | 196621010c23b201735881a8512abf6a1999d037 (diff) | |
download | nixpkgs-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.nix | 11 |
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"; + }; + }; } ); } |