summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/os-release.nix
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/3modules/os-release.nix')
-rw-r--r--krebs/3modules/os-release.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/krebs/3modules/os-release.nix b/krebs/3modules/os-release.nix
index 5fbfe6614..bfd352825 100644
--- a/krebs/3modules/os-release.nix
+++ b/krebs/3modules/os-release.nix
@@ -1,5 +1,5 @@
-{ config, ... }:
-with import <stockholm/lib>;
+{ config, lib, ... }:
+with lib;
let
nixos-version-id = if (hasAttr "nixos" config.system) then
"${config.system.nixos.version}" else "${config.system.nixosVersion}";
@@ -9,7 +9,7 @@ let
nixos-pretty-name = "NixOS ${nixos-version}";
stockholm-version-id = let
- eval = tryEval (removeSuffix "\n" (readFile <stockholm-version>));
+ eval = builtins.tryEval (removeSuffix "\n" (readFile <stockholm-version>));
in
if eval.success then eval.value else "unknown";