diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-04-17 16:48:10 -0400 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-04-17 17:04:04 -0400 |
commit | 85aa5005af530fef199cc41148e374e54d70e01e (patch) | |
tree | 296a184cc5e710e197f45a91babb107bf8509eae /nixos/modules/services/monitoring/graphite.nix | |
parent | f3055a3c508b6ff3e926ece201887467dc2b5d73 (diff) |
Introduce `mapNullable` into lib and use it in a few places
Also simply some configure flag logic my grep also alerted me too.
Diffstat (limited to 'nixos/modules/services/monitoring/graphite.nix')
-rw-r--r-- | nixos/modules/services/monitoring/graphite.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index c5352e5887da5..98931e65bb566 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -4,7 +4,7 @@ with lib; let cfg = config.services.graphite; - writeTextOrNull = f: t: if t == null then null else pkgs.writeTextDir f t; + writeTextOrNull = f: t: mapNullable (pkgs.writeTextDir f) t; dataDir = cfg.dataDir; |