summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-06-17 20:03:29 +0300
committeradisbladis <adis@blad.is>2018-06-18 22:21:27 +0800
commitb5d6a4908537a10388257c3449b826f16dc0eef2 (patch)
tree40235fed8861575d620562ecf4614383b5d890d6 /nixos/modules/services/networking
parent590b51cb955b6fc461fb1a7d7c0c524bad810bb3 (diff)
downloadnixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.tar
nixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.gz
nixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.bz2
nixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.lz
nixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.xz
nixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.zst
nixlib-b5d6a4908537a10388257c3449b826f16dc0eef2.zip
nixos/networkmanager: add extraConfig
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/networkmanager.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix
index f4c4adcaaeb8..816234506593 100644
--- a/nixos/modules/services/networking/networkmanager.nix
+++ b/nixos/modules/services/networking/networkmanager.nix
@@ -38,6 +38,8 @@ let
 
     [device]
     wifi.scan-rand-mac-address=${if cfg.wifi.scanRandMacAddress then "yes" else "no"}
+
+    ${cfg.extraConfig}
   '';
 
   /*
@@ -120,6 +122,14 @@ in {
         '';
       };
 
+      extraConfig = mkOption {
+        type = types.lines;
+        default = "";
+        description = ''
+          Configuration appended to the generated NetworkManager.conf.
+        '';
+      };
+
       unmanaged = mkOption {
         type = types.listOf types.string;
         default = [];