Skip to content

Commit

Permalink
Removes lib.mdDoc calls in hosts.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
willemml committed May 5, 2024
1 parent 9cbd65f commit 5580a38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/networking/hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}: let
inherit (lib) types mkBefore;
inherit (lib.lists) optional;
inherit (lib.options) literalExpression literalMD;
inherit (lib.options) literalExpression;
inherit (lib.attrsets) attrNames filterAttrs;
inherit (lib.strings) concatStringsSep concatMapStrings;
cfg = config.networking;
Expand All @@ -24,7 +24,7 @@ in {
"192.168.0.2" = [ "fileserver.local" "nameserver.local" ];
};
'';
description = lib.mdDoc ''
description = ''
Locally defined maps of hostnames to IP addresses.
'';
};
Expand All @@ -33,7 +33,7 @@ in {
type = types.listOf types.path;
defaultText = literalMD "Hosts from {option}`networking.hosts` and {option}`networking.extraHosts`";
example = literalExpression ''[ "''${pkgs.my-blocklist-package}/share/my-blocklist/hosts" ]'';
description = lib.mdDoc ''
description = ''
Files that should be concatenated together to form {file}`/etc/hosts`.
'';
};
Expand All @@ -42,7 +42,7 @@ in {
type = types.lines;
default = "";
example = "192.168.0.1 lanlocalhost";
description = lib.mdDoc ''
description = ''
Additional verbatim entries to be appended to {file}`/etc/hosts`.
For adding hosts from derivation results, use {option}`networking.hostFiles` instead.
'';
Expand Down

0 comments on commit 5580a38

Please sign in to comment.