From c9d98696781c4f317ad5933ece6a69d26190a6ee Mon Sep 17 00:00:00 2001
From: Julien Moutinho <julm+julm-nix@sourcephile.fr>
Date: Fri, 7 Oct 2022 13:14:46 +0200
Subject: [PATCH] Revert "aubergine: hack dbus"

This reverts commit 2a84151ab464a691a30f9cbdb8f8fc36a146b5c6.
---
 hosts/aubergine/networking.nix | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/hosts/aubergine/networking.nix b/hosts/aubergine/networking.nix
index 39e0c70..69c7cf1 100644
--- a/hosts/aubergine/networking.nix
+++ b/hosts/aubergine/networking.nix
@@ -203,31 +203,6 @@ environment.systemPackages = [
   pkgs.dfeet
 ];
 
-security.polkit.extraConfig = ''
-  /* Allow calling for local dialout group members */
-  polkit.addRule(function(action, subject) {
-      if (action.id == "org.freedesktop.ModemManager1.Voice" &&
-          subject.local && subject.active && subject.isInGroup("dialout"))
-      {
-          return polkit.Result.YES;
-      }
-  });
-'';
-#services.dbus.apparmor = "enabled";
-systemd.sockets.dbus.listenStreams = ["0.0.0.0:4444"];
-services.dbus.packages = [
-  pkgs.dconf
-  (pkgs.writeTextDir "share/dbus-1/system.d/hack-system.conf" ''
-       <listen>tcp:host=192.168.5.1,bind=0.0.0.0,port=4444,family=ipv4</listen>
-       <listen>unix:tmpdir=/tmp</listen>
-
-       <auth>ANONYMOUS</auth>
-       <allow_anonymous/>
-  '')
-];
-programs.dconf.enable = true;
-
-
 # iw dev wlp5s0 station dump
 # DOC: https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
 services.hostapd = {
-- 
2.47.2