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 {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
git-crypt
|
|
||||||
stylua # lua formatter
|
stylua # lua formatter
|
||||||
ormolu # haskell formatter
|
ormolu # haskell formatter
|
||||||
];
|
];
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue