diff options
author | pennae <github@quasiparticle.net> | 2023-01-04 00:45:35 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2023-01-10 10:31:52 +0100 |
commit | 0715ecf936a642ec6e019333114c8ff2d92360d0 (patch) | |
tree | 34a58a01ccfb0187719f0b6902e9b2d4de454e1c /nixos/modules/services/web-apps/nextcloud.xml | |
parent | 6930425922a51d353b1a52ea1140ecc03528bca3 (diff) | |
download | nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.gz nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.bz2 nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.lz nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.xz nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.zst nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.zip |
nixos/manual: normalize <programlisting>
makes sure that program listing tags are separated from their contents by exactly a newline character. this makes the markdown translation easier to verify (since no new newlines need to be inserted), and there's no rendering difference anyway.
Diffstat (limited to 'nixos/modules/services/web-apps/nextcloud.xml')
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.xml b/nixos/modules/services/web-apps/nextcloud.xml index 02d7595ff17..8f75d2f7c5a 100644 --- a/nixos/modules/services/web-apps/nextcloud.xml +++ b/nixos/modules/services/web-apps/nextcloud.xml @@ -28,7 +28,8 @@ <para> A very basic configuration may look like this: -<programlisting>{ pkgs, ... }: +<programlisting> +{ pkgs, ... }: { services.nextcloud = { enable = true; @@ -60,7 +61,8 @@ }; networking.firewall.allowedTCPPorts = [ 80 443 ]; -}</programlisting> +} +</programlisting> </para> <para> @@ -198,7 +200,8 @@ </para> <para> An exemplary configuration may look like this: -<programlisting>{ config, lib, pkgs, ... }: { +<programlisting> +{ config, lib, pkgs, ... }: { services.nginx.enable = false; services.nextcloud = { enable = true; @@ -238,7 +241,8 @@ ''; }; }; -}</programlisting> +} +</programlisting> </para> </section> @@ -286,14 +290,16 @@ in NixOS for a safe upgrade-path before removing those. In that case we should keep those packages, but mark them as insecure in an expression like this (in <literal><nixpkgs/pkgs/servers/nextcloud/default.nix></literal>): -<programlisting>/* ... */ +<programlisting> +/* ... */ { nextcloud17 = generic { version = "17.0.x"; sha256 = "0000000000000000000000000000000000000000000000000000"; eol = true; }; -}</programlisting> +} +</programlisting> </para> <para> |