Files

23 lines
435 B
Nix

{
config,
lib,
pkgs,
...
}: let
script = pkgs.writeTextFile {
name = "claude-commit.py";
text = builtins.readFile ./claude-commit.py;
};
claude-commit = pkgs.writeShellScriptBin "claude-commit" ''
exec ${pkgs.python3}/bin/python3 ${script} "$@"
'';
in {
# sops.secrets."anthropic_api_key" = {
# sopsFile = ../../secrets/common.yml;
# owner = "root";
# };
home.packages = [claude-commit];
}