From 7e7e42b4d58e90466c9f8926c3804aa23be47877 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 14 Dec 2025 13:20:44 -0800 Subject: display the git SHA for the nixos version in MOTD --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index ec2f077..f6a9b91 100644 --- a/flake.nix +++ b/flake.nix @@ -155,7 +155,7 @@ }; modules = [ { - system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; + system.configurationRevision = self.rev or self.dirtyRev or null; system.nixos.versionSuffix = nixpkgs.lib.mkForce "git.${builtins.substring 0 11 nixpkgs.rev}"; nixpkgs.pkgs = pkgs; environment.systemPackages = [ pkgs.git ]; -- cgit v1.2.3