feat(vcs): add support for git-cliff
This commit is contained in:
parent
f47962d025
commit
0f6e372345
@ -12,6 +12,7 @@ in {
|
|||||||
options.modules.vcs = {
|
options.modules.vcs = {
|
||||||
git = {
|
git = {
|
||||||
enable = mkEnableOption "enables git";
|
enable = mkEnableOption "enables git";
|
||||||
|
cliff = mkEnableOption "enables git-cliff support";
|
||||||
sendmail = {
|
sendmail = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@ -94,7 +95,7 @@ in {
|
|||||||
'');
|
'');
|
||||||
modules = {
|
modules = {
|
||||||
git = mkIf cfg.git.enable {
|
git = mkIf cfg.git.enable {
|
||||||
inherit (cfg.git) enable sendmail browser completeConfig emacs mergeTool;
|
inherit (cfg.git) enable cliff sendmail browser completeConfig emacs mergeTool;
|
||||||
inherit (cfg) email name editor;
|
inherit (cfg) email name editor;
|
||||||
publicKeyFile = cfg.publicKey.file;
|
publicKeyFile = cfg.publicKey.file;
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,7 @@ in {
|
|||||||
type = types.str;
|
type = types.str;
|
||||||
default = "Lucien Cartier-Tilet";
|
default = "Lucien Cartier-Tilet";
|
||||||
};
|
};
|
||||||
|
cliff = mkEnableOption "enables git-cliff support";
|
||||||
sendmail = {
|
sendmail = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@ -77,6 +78,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.git-cliff.enable = cfg.cliff;
|
||||||
programs.git = let
|
programs.git = let
|
||||||
smtpEmail =
|
smtpEmail =
|
||||||
if (cfg.sendmail.user == null)
|
if (cfg.sendmail.user == null)
|
||||||
|
@ -89,6 +89,7 @@
|
|||||||
integration = true;
|
integration = true;
|
||||||
pkg = emacsPkg;
|
pkg = emacsPkg;
|
||||||
};
|
};
|
||||||
|
cliff = true;
|
||||||
sendmail = {
|
sendmail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordFile = config.sops.secrets.emailPassword.path;
|
passwordFile = config.sops.secrets.emailPassword.path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user