disallow dirty git trees
This commit is contained in:
parent
1432ea461c
commit
ac5e26ecda
1 changed files with 3 additions and 5 deletions
|
|
@ -38,12 +38,10 @@
|
||||||
) ++ [(self: super: customPackages super)]
|
) ++ [(self: super: customPackages super)]
|
||||||
++ [inputs.neovim-nightly.overlay];
|
++ [inputs.neovim-nightly.overlay];
|
||||||
|
|
||||||
base = { config, ... }: {
|
base = if !(self ? rev) then throw "Dirty git tree detected." else
|
||||||
|
{ config, ... }: {
|
||||||
system = rec {
|
system = rec {
|
||||||
configurationRevision =
|
configurationRevision = self.rev;
|
||||||
if self ? rev
|
|
||||||
then self.rev
|
|
||||||
else throw "Refusing to build from a dirty Git tree!";
|
|
||||||
nixos = rec {
|
nixos = rec {
|
||||||
version = config.system.nixos.release + versionSuffix;
|
version = config.system.nixos.release + versionSuffix;
|
||||||
versionSuffix = "-${config.system.name}.r${builtins.toString self.revCount}.${self.shortRev}";
|
versionSuffix = "-${config.system.name}.r${builtins.toString self.revCount}.${self.shortRev}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue