dev-commit: re-add the enable option

This commit is contained in:
Oliver Davies 2025-07-29 22:11:29 +01:00
parent b57b037e69
commit a9b0c5c2b0
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -3,6 +3,8 @@
{
flake.modules.nixos."nixosConfigurations/t480".home-manager.users.${config.flake.meta.owner.username} =
hmArgs: {
programs.dev-commit.enable = true;
programs.dev-commit.schedule.enable = true;
programs.dev-commit.schedule.time = "daily";