Skip to content

Commit ecc2a89

Browse files
committed
git: add act and cachix
1 parent 11d560b commit ecc2a89

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

users/somasis/git/default.nix

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@
1010
./signing.nix
1111
];
1212

13+
persist.directories = with config.lib.somasis; [
14+
(xdgConfigDir "act")
15+
(xdgConfigDir "cachix")
16+
];
17+
1318
cache.directories = with config.lib.somasis; [
19+
# keep-sorted start
20+
(xdgCacheDir "act")
21+
(xdgCacheDir "actcache")
1422
(xdgCacheDir "pre-commit")
1523
(xdgCacheDir "treefmt")
1624
(xdgDataDir "mergiraf")
25+
# keep-sorted end
1726
];
1827

1928
programs = {
@@ -210,16 +219,18 @@
210219
};
211220

212221
home = {
213-
packages = [
214-
pkgs.git-open
215-
pkgs.pre-commit
222+
packages = with pkgs; [
223+
act
224+
cachix
225+
git-open
226+
pre-commit
216227

217-
(pkgs.writeShellScriptBin "git-curlam" ''
228+
(writeShellScriptBin "git-curlam" ''
218229
set -e
219230
220231
b=$(git rev-parse HEAD)
221232
222-
${pkgs.curl}/bin/curl -Lf# "$@" \
233+
${curl}/bin/curl -Lf# "$@" \
223234
| ${config.programs.git.package}/bin/git am -q
224235
225236
a=$(git rev-parse HEAD)

0 commit comments

Comments
 (0)