clan-cli: add git.commit_file() to auto commit files if inside a git

- commit only if inside a git repo
- commit only the specified file and nothing else
- auto-generate commit message if not specified
This commit is contained in:
DavHau
2023-09-21 14:07:54 +02:00
parent 8e157f891f
commit 6a359c0a2f
8 changed files with 131 additions and 5 deletions

View File

@@ -12,15 +12,17 @@
## Optional dependencies for clan cli, we re-expose them here to make sure they all build.
inherit (pkgs)
age
bash
bubblewrap
git
openssh
sshpass
zbar
tor
age
rsync
sops;
sops
sshpass
tor
zbar
;
# Override license so that we can build zerotierone without
# having to re-import nixpkgs.
zerotierone = pkgs.zerotierone.overrideAttrs (_old: { meta = { }; });