From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Wheel group as polkit admins Date: Sat, 23 Nov 2019 18:17:59 +0100 Message-ID: <87imna4im0.fsf@gnu.org> References: <17ea661e09a034c36151b72ca1ab508a3fc52d1c.camel@student.tugraz.at> <87mucuo3hh.fsf@gnu.org> <329f03fbb1df8c78deaef37c06c5041b3504c15e.camel@student.tugraz.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYZ2o-0003Ti-Ma for guix-devel@gnu.org; Sat, 23 Nov 2019 12:18:03 -0500 In-Reply-To: <329f03fbb1df8c78deaef37c06c5041b3504c15e.camel@student.tugraz.at> (Leo Prikler's message of "Sun, 17 Nov 2019 18:52:07 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Prikler Cc: guix-devel@gnu.org Hi Leo, Leo Prikler skribis: > Thanks for the hint. Since it's all just static text, I don't really > need the whole Guile power of computed-file, so I've shortened it to: > > (define polkit-wheel > (file-union > "polkit-wheel" > `(("share/polkit-1/rules.d/wheel.rules" > ,(plain-file > "wheel.rules" > "polkit.addAdminRule(function(action, subject) { > return [\"unix-group:wheel\"]; > }); > "))))) Neat. >> Should we make that the default, BTW? It would seem to make sense as >> that=E2=80=99s the whole point of the =E2=80=9Cwheel=E2=80=9D group. >>=20 >> What do people think? > > I'm probably biased as the author of this service, but I think it would > probably make sense to include it in %desktop-services. Perhaps we > could even add wheel.rules to polkit-service-type itself, although I'm > somewhat conflicted on that, as one could not opt out. Yeah, let=E2=80=99s make it a separate service like you did. Could you send a patch that does that? Thanks! Ludo=E2=80=99.