summary refs log tree commit diff
path: root/nixos
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
parent590b51cb955b6fc461fb1a7d7c0c524bad810bb3 (diff)
downloadnixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.tar
nixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.gz
nixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.bz2
nixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.lz
nixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.xz
nixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.tar.zst
nixpkgs-b5d6a4908537a10388257c3449b826f16dc0eef2.zip
nixos/networkmanager: add extraConfig
Diffstat (limited to 'nixos')
-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 f4c4adcaaeb..81623450659 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 = [];