diff options
author | lassulus <lass@lassul.us> | 2017-01-21 23:26:48 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-21 23:26:48 +0100 |
commit | cc928ccbc60b5c2dfcb6417d187dae78ffe7cb6f (patch) | |
tree | 608d4690a55c8748c3eab4cc06401c9ed93c5609 | |
parent | 65de42b52ca86375e355fec7613b129df3bccbe4 (diff) |
move indent to lib
-rw-r--r-- | krebs/3modules/exim-smarthost.nix | 1 | ||||
-rw-r--r-- | krebs/3modules/nginx.nix | 2 | ||||
-rw-r--r-- | lib/default.nix | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/krebs/3modules/exim-smarthost.nix b/krebs/3modules/exim-smarthost.nix index c96b14723..bda563f8d 100644 --- a/krebs/3modules/exim-smarthost.nix +++ b/krebs/3modules/exim-smarthost.nix @@ -2,7 +2,6 @@ with import <stockholm/lib>; let - indent = replaceChars ["\n"] ["\n "]; cfg = config.krebs.exim-smarthost; out = { diff --git a/krebs/3modules/nginx.nix b/krebs/3modules/nginx.nix index 933c2e513..b28e97e37 100644 --- a/krebs/3modules/nginx.nix +++ b/krebs/3modules/nginx.nix @@ -129,8 +129,6 @@ let }; }; - indent = replaceChars ["\n"] ["\n "]; - to-acme = { server-names, ssl, ... }: optionalAttrs ssl.acmeEnable { email = "lassulus@gmail.com"; diff --git a/lib/default.nix b/lib/default.nix index 2b12fa4bf..7e61c9413 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -39,6 +39,8 @@ let string = toJSON x; # close enough }.${type} or reject; + indent = replaceChars ["\n"] ["\n "]; + }; in |