Skip to content

Commit

Permalink
configure tray.service
Browse files Browse the repository at this point in the history
Fixes "Failed to start syncthingtray.service: Unit tray.target not found."

nix-community/home-manager#2064
  • Loading branch information
loganlinn committed Jan 5, 2023
1 parent 35cea2d commit a4b0647
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nix/home/graphical.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ ... }:

{
imports = [ ./rofi.nix ];

systemd.user.targets.tray = {
Unit = {
Description = "Home Manager System Tray";
Requires = [ "graphical-session-pre.target" ];
};
};
}
1 change: 1 addition & 0 deletions nix/home/nijusan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
./fonts.nix
./gh.nix
./git.nix
./graphical.nix
./kitty
./neovim.nix
./pretty.nix
Expand Down
2 changes: 2 additions & 0 deletions nix/home/sync.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ pkgs, ... }: {
imports = [ ./graphical.nix ];

services.syncthing = {
enable = true;
tray = {
Expand Down

0 comments on commit a4b0647

Please sign in to comment.