nixos/atop: fix broken wrapper

The setuid,owner,group options are mandatory after #126289.
This commit is contained in:
rnhmjoj 2021-09-22 12:38:19 +02:00
parent 196621010c
commit b53a5b91b9
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

View File

@ -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";
};
};
}
);
}