Re-configure dev-commit
This commit is contained in:
parent
f48b81ecea
commit
3e7bf2721f
4 changed files with 45 additions and 9 deletions
|
@ -56,8 +56,6 @@
|
|||
|
||||
systemd.user = lib.mkIf cfg.schedule.enable {
|
||||
services.dev-commit = {
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
|
||||
Service = {
|
||||
Environment = [ "DEV_COMMIT_PATHS=${repoPaths}" ];
|
||||
ExecStart = "${lib.getExe pkgs.dev-commit}";
|
||||
|
|
20
modules2/hosts/t480/dev-commit.nix
Normal file
20
modules2/hosts/t480/dev-commit.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos."nixosConfigurations/t480".home-manager.users.${config.flake.meta.owner.username} =
|
||||
hmArgs: {
|
||||
programs.dev-commit.schedule.enable = true;
|
||||
programs.dev-commit.schedule.time = "daily";
|
||||
|
||||
programs.dev-commit.repoPaths =
|
||||
let
|
||||
repos = "${hmArgs.config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/forgejo/opdavies";
|
||||
in
|
||||
[
|
||||
"${repos}/email-filters"
|
||||
"${repos}/nix-config"
|
||||
"${repos}/oliverdavies.uk"
|
||||
"${repos}/opentofu-dns"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
{
|
||||
flake.modules.homeManager.base.programs.zsh.dotDir = ".config/zsh";
|
||||
flake.modules.homeManager.base = {
|
||||
programs.zsh.dotDir = ".config/zsh";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue