summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--krebs/2configs/nscd-fix.nix18
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";
}));
})
-