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 {
packages = with pkgs; [
git-crypt
stylua # lua formatter
ormolu # haskell formatter
];

View file

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

View file

@ -28,9 +28,19 @@ in
default = null;
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 {
home.packages = mkIf cfg.git-crypt.enable [ pkgs.git-crypt ];
programs.git = {
enable = true;
userName = cfg.userName;