dev-commit: re-add the enable option
This commit is contained in:
parent
b57b037e69
commit
a9b0c5c2b0
2 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
options.programs.dev-commit = {
|
||||
enable = lib.mkEnableOption "Enable dev-commit";
|
||||
|
||||
repoPaths = lib.mkOption {
|
||||
default = [ ];
|
||||
description = "A list of repository paths that should have automated commits";
|
||||
|
@ -48,7 +50,7 @@
|
|||
repoPaths = lib.concatStringsSep ":" cfg.repoPaths;
|
||||
in
|
||||
{
|
||||
home = {
|
||||
home = lib.mkIf cfg.enable {
|
||||
packages = [ pkgs.dev-commit ];
|
||||
|
||||
sessionVariables.DEV_COMMIT_PATHS = repoPaths;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue