embed top-level flake source folder into the build

This commit is contained in:
Alexander Tomokhov 2023-11-10 07:05:38 +04:00
parent 7378329891
commit 6c849e2628

View file

@ -32,9 +32,12 @@
hardware-configuration
./configuration.nix
{
# embed top-level flake source folder into the build
environment.etc."selfprivacy-config-source" =
top-level-flake.outPath;
# for running "nix search nixpkgs", etc
nix.registry.nixpkgs.flake = nixpkgs;
# dirty builds are forbidden
# embed commit sha1; dirty builds are intentionally forbidden
system.configurationRevision = top-level-flake.rev; # FIXME
# system.configurationRevision = self.rev;
}