summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2018-02-01 10:51:35 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2018-02-01 10:51:35 +0100
commite28ecd55285aa1d08b46c57396c21b85c428d083 (patch)
treea858cb890f44c22137a256bd08975e138841f73b /nixos
parentf1cacaf97c4057997a2b4c62be1696650f53203d (diff)
downloadnixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.tar
nixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.tar.gz
nixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.tar.bz2
nixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.tar.lz
nixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.tar.xz
nixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.tar.zst
nixpkgs-e28ecd55285aa1d08b46c57396c21b85c428d083.zip
fix
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 2a17ae934f8..f4851988d63 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -274,7 +274,7 @@ let
 
       virtualType = mkOption {
         default = if hasPrefix "tun" name then "tun" else "tap";
-        defaultText = ''if hasPrefix "tun" name then "tun" else "tap"'';
+        defaultText = literalExample ''if hasPrefix "tun" name then "tun" else "tap"'';
         type = with types; enum [ "tun" "tap" ];
         description = ''
           The type of interface to create.