Add image_id & version

This commit is contained in:
Tristan D. 2024-07-30 20:23:37 +02:00
parent 0e25b6b87c
commit 7148614dc5
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4

View file

@ -3,8 +3,21 @@
, pkgs
, inputs
, system
, self
, ...
}: {
}:
let
commitid =
if (self ? shortRev)
then self.shortRev
else "dirty";
in
{
system.image = {
id = "tristnix";
version = commitid;
};
# system.nixos.tags = [ "tristnix_${commitid}" ];
nixpkgs.hostPlatform = lib.mkDefault system;
nix = {