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