Skip to content

Commit

Permalink
template: Exclude flake.lock (so the user uses the latest)
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 4, 2023
1 parent fc92399 commit 4f3c886
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
description = "A `home-manager` template providing useful tools & settings for Nix-based development";
path = builtins.path {
path = ./.;
filter = path: _:
!(inputs.nixpkgs.lib.hasSuffix "LICENSE" path ||
inputs.nixpkgs.lib.hasSuffix "README.md" path);
filter = path: _: with inputs.nixpkgs.lib;
!(hasSuffix "LICENSE" path ||
hasSuffix "README.md" path ||
hasSuffix "flake.lock" path);
};
};

Expand Down

0 comments on commit 4f3c886

Please sign in to comment.