1
0
Fork 0

General: manage git-crypt config

This commit is contained in:
Aires 2024-10-06 11:53:28 -04:00
parent fd0a9a77d7
commit d829d8b67e
4 changed files with 19 additions and 0 deletions

View file

@ -50,6 +50,7 @@ in
# Configure home-manager # Configure home-manager
home-manager.users.aires = { home-manager.users.aires = {
imports = [ imports = [
../common/home-manager/git-crypt.nix
../common/home-manager/gnome.nix ../common/home-manager/gnome.nix
../common/home-manager/zsh.nix ../common/home-manager/zsh.nix
]; ];

View file

@ -0,0 +1,16 @@
# Configure Git to support git-crypt
{ pkgs, ... }:
{
programs.git = {
extraConfig = {
filter."git-crypt" = {
required = true;
smudge = "/run/current-system/sw/bin/git-crypt smudge";
clean = "/run/current-system/sw/bin/git-crypt clean";
};
diff."git-crypt" = {
textconv = "/run/current-system/sw/bin/git-crypt diff";
};
};
};
}

View file

@ -51,6 +51,7 @@ in
home-manager.users.gremlin = { home-manager.users.gremlin = {
imports = [ imports = [
../common/home-manager/git-crypt.nix
../common/home-manager/gnome.nix ../common/home-manager/gnome.nix
../common/home-manager/zsh.nix ../common/home-manager/zsh.nix
]; ];

View file

@ -2,6 +2,7 @@
{ {
# Give root user access to run remote builds # Give root user access to run remote builds
home-manager.users.root = { home-manager.users.root = {
imports = [ ../common/home-manager/git-crypt.nix ];
home.stateVersion = "24.05"; home.stateVersion = "24.05";
programs = { programs = {
ssh = { ssh = {