General: manage git-crypt config
This commit is contained in:
parent
fd0a9a77d7
commit
d829d8b67e
|
@ -50,6 +50,7 @@ in
|
|||
# Configure home-manager
|
||||
home-manager.users.aires = {
|
||||
imports = [
|
||||
../common/home-manager/git-crypt.nix
|
||||
../common/home-manager/gnome.nix
|
||||
../common/home-manager/zsh.nix
|
||||
];
|
||||
|
|
16
modules/users/common/home-manager/git-crypt.nix
Normal file
16
modules/users/common/home-manager/git-crypt.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -51,6 +51,7 @@ in
|
|||
|
||||
home-manager.users.gremlin = {
|
||||
imports = [
|
||||
../common/home-manager/git-crypt.nix
|
||||
../common/home-manager/gnome.nix
|
||||
../common/home-manager/zsh.nix
|
||||
];
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
# Give root user access to run remote builds
|
||||
home-manager.users.root = {
|
||||
imports = [ ../common/home-manager/git-crypt.nix ];
|
||||
home.stateVersion = "24.05";
|
||||
programs = {
|
||||
ssh = {
|
||||
|
|
Loading…
Reference in a new issue