home/git: add git-crypt to module
This commit is contained in:
parent
46e5c96b62
commit
ad7bcc3df2
3 changed files with 12 additions and 1 deletions
|
@ -28,7 +28,6 @@
|
|||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
git-crypt
|
||||
stylua # lua formatter
|
||||
ormolu # haskell formatter
|
||||
];
|
||||
|
|
|
@ -69,6 +69,8 @@ in
|
|||
enable = true;
|
||||
gpgKey = secrets.gpgSigningKey;
|
||||
inherit (secrets) userName userEmail;
|
||||
|
||||
git-crypt.enable = true;
|
||||
};
|
||||
|
||||
# password manager
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue