diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-02 19:55:32 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-05 22:47:43 +0100 |
| commit | 83f0daa6c54c26ad240c46722d3ad84f853f517a (patch) | |
| tree | 64ea00623691af7ba27d36a8bb3d0faa9a67096f /modules/common/hooks | |
| parent | pkgs/*: Use a `stable`/`unstable` marker in the filename (diff) | |
| download | nixos-config-83f0daa6c54c26ad240c46722d3ad84f853f517a.zip | |
modules/*: Fix various name mistakes and other issues
Diffstat (limited to 'modules/common/hooks')
| -rw-r--r-- | modules/common/hooks/default.nix | 17 | ||||
| -rwxr-xr-x | modules/common/hooks/scripts/sync-git-repo.sh | 23 |
2 files changed, 0 insertions, 40 deletions
diff --git a/modules/common/hooks/default.nix b/modules/common/hooks/default.nix deleted file mode 100644 index 5b694039..00000000 --- a/modules/common/hooks/default.nix +++ /dev/null @@ -1,17 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. -{ - pkgs, - lib, - config, -}: { - sync-git-repos = config.lib.taskwarrior.mkHook "on-add" [pkgs.git] ./scripts/sync-git-repo.sh; - sync-git-repos-mod = config.lib.taskwarrior.mkHook "on-modify" [pkgs.git] ./scripts/sync-git-repo.sh; -} diff --git a/modules/common/hooks/scripts/sync-git-repo.sh b/modules/common/hooks/scripts/sync-git-repo.sh deleted file mode 100755 index fe0d0085..00000000 --- a/modules/common/hooks/scripts/sync-git-repo.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env sh - -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. - -task_data="$(task _get rc.data.location)" -[ "$task_data" ] || die "Taskwarrior should have a location set" - -cd "$task_data" || die "(BUG?): Your data.location path is not accessable" - -[ -d ./.git/ ] || git init - -git add . -git commit --message="chore: Update" --no-gpg-sign - -# vim: ft=sh |
