connmand: add extraFlags option to service
commitb7b2a4ffa42a11ddfc111447cb11ecd6b78aec05
authorHerwig Hochleitner <herwig@bendlas.net>
dateTue 13 Sep 2016, 20:10 (10 years ago)
parente47e45c
nixos/modules/services/networking/connman.nix+10−1
@@ -52,6 +52,15 @@ in {
5252 '';
5353 };
5454
55+ extraFlags = mkOption {
56+ type = with types; listOf string;
57+ default = [ ];
58+ example = [ "--nodnsproxy" ];
59+ description = ''
60+ Extra flags to pass to connmand
61+ '';
62+ };
63+
5564 };
5665
5766 };
@@ -81,7 +90,7 @@ in {
8190 Type = "dbus";
8291 BusName = "net.connman";
8392 Restart = "on-failure";
84− ExecStart = "${pkgs.connman}/sbin/connmand --config=${configFile} --nodaemon";
93+ ExecStart = "${pkgs.connman}/sbin/connmand --config=${configFile} --nodaemon ${toString cfg.extraFlags}";
8594 StandardOutput = "null";
8695 };
8796 };