]> Git — Sourcephile - sourcephile-nix.git/blob - build/modules/nix-plugins.nix
init
[sourcephile-nix.git] / build / modules / nix-plugins.nix
1 { config, ... }:
2 {
3 config = {
4 nix-plugins = {
5 enable = true;
6 extra-builtins = ''
7 pass = path: exec [ "${config.nix-plugins.nix-pass}/bin/nix-pass" path ];
8 git = dir: args: exec ([ "${config.nix-plugins.nix-git}/bin/nix-git" (builtins.toPath dir) ] ++ args);
9 git-time = dir: path: exec [ "${config.nix-plugins.nix-git}/bin/nix-git" (builtins.toPath dir) "log" "-1" "--format=%ct" "--" path ];
10 '';
11 };
12 };
13 }