Add image_id & version
This commit is contained in:
parent
0e25b6b87c
commit
7148614dc5
1 changed files with 14 additions and 1 deletions
|
@ -3,8 +3,21 @@
|
||||||
, pkgs
|
, pkgs
|
||||||
, inputs
|
, inputs
|
||||||
, system
|
, 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;
|
nixpkgs.hostPlatform = lib.mkDefault system;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue