From 1fd3abb79f7e2f523b6c1714a03025dea912a12f Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 23 Feb 2024 18:20:02 +0100 Subject: feat(sys/nixos_git_rev): Add a file with the current git reverence --- sys/git_revision/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sys/git_revision/default.nix (limited to 'sys/git_revision') diff --git a/sys/git_revision/default.nix b/sys/git_revision/default.nix new file mode 100644 index 00000000..d9388bfa --- /dev/null +++ b/sys/git_revision/default.nix @@ -0,0 +1,8 @@ +{self, ...}: { + environment.etc.nixos_git_rev = { + text = builtins.toString (self.shortRev + or self.dirtyShortRev + or self.lastModified + or "unknown"); + }; +} -- cgit 1.4.1