General: manage git-crypt config
This commit is contained in:
parent
fd0a9a77d7
commit
d829d8b67e
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
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 = {
|
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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue