home/git: add git-crypt to module

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-01 22:04:00 +03:00
parent 46e5c96b62
commit ad7bcc3df2
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
3 changed files with 12 additions and 1 deletions

View file

@ -28,7 +28,6 @@
{ {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
git-crypt
stylua # lua formatter stylua # lua formatter
ormolu # haskell formatter ormolu # haskell formatter
]; ];

View file

@ -69,6 +69,8 @@ in
enable = true; enable = true;
gpgKey = secrets.gpgSigningKey; gpgKey = secrets.gpgSigningKey;
inherit (secrets) userName userEmail; inherit (secrets) userName userEmail;
git-crypt.enable = true;
}; };
# password manager # password manager

View file

@ -28,9 +28,19 @@ in
default = null; default = null;
description = "The default GnuPG signing key fingerprint"; description = "The default GnuPG signing key fingerprint";
}; };
git-crypt = {
enable = mkOption {
type = types.bool;
default = false;
description = "Add git-crypt package";
};
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = mkIf cfg.git-crypt.enable [ pkgs.git-crypt ];
programs.git = { programs.git = {
enable = true; enable = true;
userName = cfg.userName; userName = cfg.userName;