do not try to embed flake's git revision

This commit is contained in:
Alexander Tomokhov 2023-10-18 16:25:18 +04:00
parent f11d8cc902
commit 2d7680d456

View file

@ -22,9 +22,6 @@
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
cfgShortRev = builtins.substring 0 7 self.rev;
nixosLabel = config:
"${config.system.nixos.release}.${cfgShortRev}.${nixpkgs.shortRev}";
userdata = builtins.fromJSON (builtins.readFile userdata-json); userdata = builtins.fromJSON (builtins.readFile userdata-json);
hardware-configuration = import hardware-configuration-nix; hardware-configuration = import hardware-configuration-nix;
in in
@ -39,12 +36,6 @@
hardware-configuration hardware-configuration
# main configuration part # main configuration part
./configuration.nix ./configuration.nix
# we need NixOS repository git commit sha1 embedded
({ config, ... }: {
system.nixos.label = nixosLabel config;
system.nixos.version = nixosLabel config;
system.configurationRevision = self.rev;
})
]; ];
}; };
}; };