nix: Use filesets to reduce rebuilds

Nix expressions will never be used within the build, so let's filter
them out so that editing Nix files never triggers rebuilds.
This commit is contained in:
Will Fancher 2025-09-27 02:48:51 -04:00
parent e108983356
commit 365c84997f

View File

@ -30,7 +30,10 @@ let
args = {
inherit version;
src = ./.;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.fileFilter ({ hasExt, ... }: !hasExt "nix") ./.;
};
strictDeps = true;
env = {