From ba0afde81f81b8173cec24a9553fda5b43a4e998 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 30 Jun 2023 11:10:08 +0100 Subject: [PATCH] Pass flake version to config version. --- hosts/common/global/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index afe7cab..95367de 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -11,6 +11,8 @@ ]; system.copySystemConfiguration = false; # not supported with flakes + # Let 'nixos-version --json' know about the Git revision of the flake + system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions