diff options
author | pennae <github@quasiparticle.net> | 2022-08-30 02:30:04 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-08-31 16:36:16 +0200 |
commit | 722b99bc0eb57711c0498a86a3f55e6c69cdb05f (patch) | |
tree | f5841c8c329a23a3268556efadccf17423519e37 /nixos/modules/services/network-filesystems | |
parent | bd5636884879a6ef672703dd51f3e398a58c3b8e (diff) | |
download | nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.tar nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.tar.gz nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.tar.bz2 nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.tar.lz nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.tar.xz nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.tar.zst nixpkgs-722b99bc0eb57711c0498a86a3f55e6c69cdb05f.zip |
nixos/*: convert options with admonitions to MD
rendering changes only slightly, most changes are in spacing.
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r-- | nixos/modules/services/network-filesystems/samba-wsdd.nix | 14 | ||||
-rw-r--r-- | nixos/modules/services/network-filesystems/samba.nix | 13 |
2 files changed, 13 insertions, 14 deletions
diff --git a/nixos/modules/services/network-filesystems/samba-wsdd.nix b/nixos/modules/services/network-filesystems/samba-wsdd.nix index 38980593e76..e28fe4cf9c4 100644 --- a/nixos/modules/services/network-filesystems/samba-wsdd.nix +++ b/nixos/modules/services/network-filesystems/samba-wsdd.nix @@ -8,17 +8,17 @@ let in { options = { services.samba-wsdd = { - enable = mkEnableOption '' + enable = mkEnableOption (lib.mdDoc '' Enable Web Services Dynamic Discovery host daemon. This enables (Samba) hosts, like your local NAS device, to be found by Web Service Discovery Clients like Windows. - <note> - <para>If you use the firewall consider adding the following:</para> - <programlisting> + + ::: {.note} + If you use the firewall consider adding the following: + networking.firewall.allowedTCPPorts = [ 5357 ]; networking.firewall.allowedUDPPorts = [ 3702 ]; - </programlisting> - </note> - ''; + ::: + ''); interface = mkOption { type = types.nullOr types.str; default = null; diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix index 7a07b043859..1310a374abd 100644 --- a/nixos/modules/services/network-filesystems/samba.nix +++ b/nixos/modules/services/network-filesystems/samba.nix @@ -80,16 +80,15 @@ in enable = mkOption { type = types.bool; default = false; - description = '' + description = lib.mdDoc '' Whether to enable Samba, which provides file and print services to Windows clients through the SMB/CIFS protocol. - <note> - <para>If you use the firewall consider adding the following:</para> - <programlisting> - services.samba.openFirewall = true; - </programlisting> - </note> + ::: {.note} + If you use the firewall consider adding the following: + + services.samba.openFirewall = true; + ::: ''; }; |