diff options
author | Herwig Hochleitner <herwig@bendlas.net> | 2016-09-13 20:10:03 +0200 |
---|---|---|
committer | Herwig Hochleitner <herwig@bendlas.net> | 2018-02-15 23:37:12 +0100 |
commit | b7b2a4ffa42a11ddfc111447cb11ecd6b78aec05 (patch) | |
tree | fa2ac40a30a98f64a98263095b0da65ebdfc36f2 /nixos/modules/services/networking | |
parent | e47e45c4cab3b281c8bce499a369b9f30ac5edcc (diff) | |
download | nixlib-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.nix | 11 |
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"; }; }; |