os-release: follow renamed modules

This commit is contained in:
lassulus 2018-03-18 17:31:59 +01:00
parent 26eb236cd9
commit e5f3827fc8

View File

@ -1,8 +1,11 @@
{ config, ... }: { config, ... }:
with import <stockholm/lib>; with import <stockholm/lib>;
let let
nixos-version-id = "${config.system.nixosVersion}"; nixos-version-id = if (hasAttr "nixos" config.system) then
nixos-version = "${nixos-version-id} (${config.system.nixosCodeName})"; "${config.system.nixos.version}" else "${config.system.nixosVersion}";
nixos-codeName = if (hasAttr "nixos" config.system) then
"${config.system.nixos.codeName}" else "${config.system.nixosCodeName}";
nixos-version = "${nixos-version-id} (${nixos-codeName})";
nixos-pretty-name = "NixOS ${nixos-version}"; nixos-pretty-name = "NixOS ${nixos-version}";
stockholm-version-id = let stockholm-version-id = let