From 6c849e262838257afb20f258c3a66b0fc94e17b0 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Fri, 10 Nov 2023 07:05:38 +0400 Subject: [PATCH] embed top-level flake source folder into the build --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 8ea1f46..497c230 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }