diff options
author | Felix Buehler <account@buehler.rocks> | 2023-06-25 11:47:43 +0200 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-06-25 09:11:40 -0300 |
commit | 933a41a73fe2174b90cabb7d671ee2cc5658701a (patch) | |
tree | 1f8228d1369ab51c644a47ab269fb9c638553752 /nixos/modules/services/web-apps/peertube.nix | |
parent | 175e9d1f00c41b49606e4eacbc1bfe396641e90f (diff) | |
download | nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.gz nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.bz2 nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.lz nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.xz nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.tar.zst nixlib-933a41a73fe2174b90cabb7d671ee2cc5658701a.zip |
treewide: use optional instead of 'then []'
Diffstat (limited to 'nixos/modules/services/web-apps/peertube.nix')
-rw-r--r-- | nixos/modules/services/web-apps/peertube.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/peertube.nix b/nixos/modules/services/web-apps/peertube.nix index 4ef2d7dce532..4826b2cab6a3 100644 --- a/nixos/modules/services/web-apps/peertube.nix +++ b/nixos/modules/services/web-apps/peertube.nix @@ -52,9 +52,7 @@ let envFile = pkgs.writeText "peertube.env" (lib.concatMapStrings (s: s + "\n") ( (lib.concatLists (lib.mapAttrsToList (name: value: - if value != null then [ - "${name}=\"${toString value}\"" - ] else [] + lib.optional (value != null) ''${name}="${toString value}"'' ) env)))); peertubeEnv = pkgs.writeShellScriptBin "peertube-env" '' |