Skip to content

Commit

Permalink
fix(home-manager): added missing Install section for thunderbird-head…
Browse files Browse the repository at this point in the history
…less and qbittorrent sevices
  • Loading branch information
Wittano committed Jan 8, 2025
1 parent eac3571 commit 20d305b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home-manager/qbittorrent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ with lib;
Unit = {
Description = "Qbittorrent - torrent client in web-only version";
After = [ "network.target" ];
PartOf = [ "graphical-session.target" ];
};

Service = {
Expand All @@ -33,7 +34,7 @@ with lib;
Type = "exec";
};

Install.WantedBy = [ "default.target" ];
Install.WantedBy = [ "graphical-session.target" ];
};

home.packages = mkIf cfg.installDesktop [ pkgs.qbittorrent ];
Expand Down
5 changes: 5 additions & 0 deletions home-manager/thunderbird.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,22 @@ in
Unit = {
Description = "Thunderbird in headless mode";
After = [ "network.target" ];
PartOf = [ "graphical-session.target" ];
};

Service = {
ExecStart = "${thunderbird}/bin/thunderbird --headless";
ExecCondition = "${pkgs.bash}/bin/bash -c '! ${pkgs.toybox}/bin/pgrep thunderbird'";
Restart = "on-failure";
};

Install.WantedBy = [ "graphical-session.target" ];
};
timers.${serviceName} = {
inherit (services.${serviceName}) Unit;

Timer.OnCalendar = "*-*-* *:*:00";
Install.WantedBy = [ "graphical-session.target" ];
};
};

Expand Down

0 comments on commit 20d305b

Please sign in to comment.