summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorHerwig Hochleitner <herwig@bendlas.net>2016-09-13 20:10:03 +0200
committerHerwig Hochleitner <herwig@bendlas.net>2018-02-15 23:37:12 +0100
commitb7b2a4ffa42a11ddfc111447cb11ecd6b78aec05 (patch)
treefa2ac40a30a98f64a98263095b0da65ebdfc36f2 /nixos/modules/services/networking
parente47e45c4cab3b281c8bce499a369b9f30ac5edcc (diff)
downloadnixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.tar
nixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.tar.gz
nixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.tar.bz2
nixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.tar.lz
nixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.tar.xz
nixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.tar.zst
nixlib-b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05.zip
connmand: add extraFlags option to service
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/connman.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/connman.nix b/nixos/modules/services/networking/connman.nix
index 546d27069232..c3ca6fbe725e 100644
--- a/nixos/modules/services/networking/connman.nix
+++ b/nixos/modules/services/networking/connman.nix
@@ -52,6 +52,15 @@ in {
         '';
       };
 
+      extraFlags = mkOption {
+        type = with types; listOf string;
+        default = [ ];
+        example = [ "--nodnsproxy" ];
+        description = ''
+          Extra flags to pass to connmand
+        '';
+      };
+
     };
 
   };
@@ -81,7 +90,7 @@ in {
         Type = "dbus";
         BusName = "net.connman";
         Restart = "on-failure";
-        ExecStart = "${pkgs.connman}/sbin/connmand --config=${configFile} --nodaemon";
+        ExecStart = "${pkgs.connman}/sbin/connmand --config=${configFile} --nodaemon ${toString cfg.extraFlags}";
         StandardOutput = "null";
       };
     };