0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos: remove stray spaces

This commit is contained in:
Naïm Favier 2023-01-21 21:46:53 +01:00
parent 112e7c9a8e
commit 3aa1337a71
No known key found for this signature in database
GPG key ID: 95AFCE8211908325
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ in
host = mkOption { host = mkOption {
type = types.str; type = types.str;
description = mdDoc "External host name"; description = mdDoc "External host name";
defaultText = lib.literalExpression "config.networking.domain or config.networking.hostName "; defaultText = lib.literalExpression "config.networking.domain or config.networking.hostName";
default = default =
if domain == null then if domain == null then
config.networking.hostName config.networking.hostName

View file

@ -86,7 +86,7 @@ in
banaction = mkOption { banaction = mkOption {
default = if config.networking.nftables.enable then "nftables-multiport" else "iptables-multiport"; default = if config.networking.nftables.enable then "nftables-multiport" else "iptables-multiport";
defaultText = literalExpression '' if config.networking.nftables.enable then "nftables-multiport" else "iptables-multiport" ''; defaultText = literalExpression ''if config.networking.nftables.enable then "nftables-multiport" else "iptables-multiport"'';
type = types.str; type = types.str;
description = lib.mdDoc '' description = lib.mdDoc ''
Default banning action (e.g. iptables, iptables-new, iptables-multiport, Default banning action (e.g. iptables, iptables-new, iptables-multiport,
@ -98,7 +98,7 @@ in
banaction-allports = mkOption { banaction-allports = mkOption {
default = if config.networking.nftables.enable then "nftables-allport" else "iptables-allport"; default = if config.networking.nftables.enable then "nftables-allport" else "iptables-allport";
defaultText = literalExpression '' if config.networking.nftables.enable then "nftables-allport" else "iptables-allport" ''; defaultText = literalExpression ''if config.networking.nftables.enable then "nftables-allport" else "iptables-allport"'';
type = types.str; type = types.str;
description = lib.mdDoc '' description = lib.mdDoc ''
Default banning action (e.g. iptables, iptables-new, iptables-multiport, Default banning action (e.g. iptables, iptables-new, iptables-multiport,

View file

@ -144,7 +144,7 @@ in {
interface. If unset no authentication will be required. interface. If unset no authentication will be required.
The file must contain user names and password hashes in the format The file must contain user names and password hashes in the format
`username:hash `, one for each line. Usernames must `username:hash`, one for each line. Usernames must
start with a lowecase ([a-z]) ASCII character, might contain start with a lowecase ([a-z]) ASCII character, might contain
non-consecutive underscores except at the end, and consists of non-consecutive underscores except at the end, and consists of
small-case a-z characters and digits 0-9. small-case a-z characters and digits 0-9.