diff options
author | tv <tv@krebsco.de> | 2019-01-27 20:09:11 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-01-27 20:09:11 +0100 |
commit | b4f24ff76ad708343b67afce45765a66c6bfb660 (patch) | |
tree | e58b5926a246c53ad9f0493e0c2b11285b73ee48 /krebs/2configs | |
parent | 52ef20148e44f2b2017a0edc30899860799ad652 (diff) |
krebs nscd-fix: normalize style
Diffstat (limited to 'krebs/2configs')
-rw-r--r-- | krebs/2configs/nscd-fix.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/krebs/2configs/nscd-fix.nix b/krebs/2configs/nscd-fix.nix index 20dc3bae4..8e5909e72 100644 --- a/krebs/2configs/nscd-fix.nix +++ b/krebs/2configs/nscd-fix.nix @@ -1,18 +1,19 @@ -{ pkgs, ... }: with import <stockholm/lib>; -let +{ pkgs, ... }: let + + enable = versionOlderThan "19.03"; + versionOlderThan = v: compareVersions (versions.majorMinor version) (versions.majorMinor v) == -1; - enable = - versionOlderThan "19.03"; - warning = '' - Using custom services.nscd.config because - https://github.com/NixOS/nixpkgs/pull/50316 - ''; + warning = '' + Using custom services.nscd.config because + https://github.com/NixOS/nixpkgs/pull/50316 + ''; + in optionalAttrs enable (trace warning { services.nscd.enable = mkForce true; @@ -21,4 +22,3 @@ in sha256 = "1jlddk38lyynjn51zx3xi1nc29ahajyh0qg48qbq6dqlsrn3wxqs"; })); }) - |