Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 1, 2024
1 parent fce703e commit 0a0bfa5
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions modules/flake-parts/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
darwinOnly =
hasPrefix "configurations/darwin" path
|| hasPrefix "modules/darwin" path;
alwaysExclude =
hasSuffix "LICENSE" path
|| hasSuffix "README.md" path
|| hasSuffix ".github/" path
|| hasSuffix "template.nix"
;
};
in
{
Expand All @@ -29,10 +35,8 @@
'';
path = builtins.path {
path = inputs.self;
filter = path: _: with inputs.nixpkgs.lib;
!(hasSuffix "LICENSE" path ||
hasSuffix "README.md" path ||
hasSuffix ".github/" path);
filter = path: _:
!(filters path).alwaysExclude;
};
};

Expand Down Expand Up @@ -83,12 +87,6 @@
paths = [ "**/neovim**" ];
value = false;
}
{
name = "github-ci";
description = "Include GitHub Actions workflow configuration";
paths = [ ".github" ];
value = false;
}
];
};

Expand Down

0 comments on commit 0a0bfa5

Please sign in to comment.