From a9b0c5c2b051d6d726fedd026fdb6ce4b5395e94 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 29 Jul 2025 22:11:29 +0100 Subject: [PATCH] dev-commit: re-add the enable option --- modules2/dev-commit.nix | 4 +++- modules2/hosts/t480/dev-commit.nix | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules2/dev-commit.nix b/modules2/dev-commit.nix index d767a116..352a01ad 100644 --- a/modules2/dev-commit.nix +++ b/modules2/dev-commit.nix @@ -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; diff --git a/modules2/hosts/t480/dev-commit.nix b/modules2/hosts/t480/dev-commit.nix index 0e4ef12c..e584bdd1 100644 --- a/modules2/hosts/t480/dev-commit.nix +++ b/modules2/hosts/t480/dev-commit.nix @@ -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";