diff --git a/os-mods/common/default.nix b/os-mods/common/default.nix index a2a8a6d..a79b49a 100644 --- a/os-mods/common/default.nix +++ b/os-mods/common/default.nix @@ -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 = {