system.configurationRevision = self.rev or "@${self.lastModifiedDate}"

pull/55/head
Alexander Tomokhov 2023-11-14 05:23:10 +04:00
parent f33fb9e9bf
commit 26b3071929
1 changed files with 4 additions and 2 deletions

View File

@ -36,8 +36,10 @@
top-level-flake.outPath;
# for running "nix search nixpkgs", etc
nix.registry.nixpkgs.flake = nixpkgs;
# embed commit sha1; FIXME dirty builds must be intentionally forbidden
system.configurationRevision = self.rev or ("#" + self.lastModifiedDate + "-" + toString self.lastModified);
# embed commit sha1 for `nixos-version --configuration-revision`
system.configurationRevision = self.rev
or "@${self.lastModifiedDate}"; # for development
# TODO assertion to forbid dirty builds caused by top-level-flake
}
]
++