From c12428bcb12e4e0b38e8b28d725a40cbc91a8517 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 5 Jan 2021 13:03:30 -0300 Subject: Add gitignore rule for generated assets and match with gitignoreSource --- default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index f949982..81429bb 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,13 @@ let niv-sources = import ./nix/sources.nix; pkgs = import niv-sources.nixpkgs { }; - src = pkgs.nix-gitignore.gitignoreSource [ "!.git" ] ./.; + src = pkgs.nix-gitignore.gitignoreSourcePure + [ + "/result*" + "/_site/" + "/.jekyll-cache/" + ] + ./.; utils-i18n = pkgs.callPackage ./nix/utils-i18n.nix { }; pkgs-next = pkgs.callPackage ./nix/nixpkgs-next.nix { }; -- cgit v1.2.3