From 999c9e8c9eddd38f4ece1b1eff6369ac4d7a30fe Mon Sep 17 00:00:00 2001 From: Paul Brinkmeier Date: Tue, 7 Oct 2025 00:20:34 +0200 Subject: [PATCH] Ignore .gitea in flake.nix --- flake.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index f753d9e..19032ed 100644 --- a/flake.nix +++ b/flake.nix @@ -26,11 +26,18 @@ }; # For building the package, we use only the files not ignored by Git as inputs. - # Also, flake.nix and flake.lock are not included to avoid rebuilds when + # Also, flake.nix, flake.lock and .gitea are not included to avoid rebuilds when # working on them. src = pkgs.lib.cleanSourceWith { - src = gitignore.lib.gitignoreSource ./.; - filter = path: type: builtins.elem (builtins.baseNameOf path) [ "flake.nix" "flake.lock" ]; + src = ./.; + filter = gitignore.lib.gitignoreFilterWith { + basePath = ./.; + extraRules = '' + flake.nix + flake.lock + .gitea + ''; + }; }; yore = pkgs.lib.pipe