Skip to content

Commit

Permalink
home-manager/wayland: remove target overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jan 3, 2025
1 parent 96c20cb commit 9583c57
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions modules/home-manager/desktop/wayland/kanshi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ in
};

config = lib.mkIf cfg.enable {
services.kanshi = {
enable = true;
systemdTarget = "graphical-session.target";
};
services.kanshi.enable = true;

systemd.user.services.kanshi = {
Unit.ConditionEnvironment = "WAYLAND_DISPLAY";
Service = {
# Use exponential restart
# https://enotty.pipebreaker.pl/posts/2024/01/how-systemd-exponential-restart-delay-works/
Expand Down
1 change: 0 additions & 1 deletion modules/home-manager/desktop/wayland/swayidle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ in
# Add some time before restart, to avoid the following error:
# swayidle.service: Start request repeated too quickly.
systemd.user.services.swayidle = {
Unit.After = [ "graphical-session.target" ];
Service = {
# Use exponential restart
RestartSteps = 5;
Expand Down
4 changes: 0 additions & 4 deletions modules/home-manager/desktop/wayland/waybar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,6 @@ in
};

systemd.user.services.waybar = {
Unit = {
After = lib.mkForce [ "graphical-session.target" ];
ConditionEnvironment = "WAYLAND_DISPLAY";
};
Service = {
# Use exponential restart
# https://enotty.pipebreaker.pl/posts/2024/01/how-systemd-exponential-restart-delay-works/
Expand Down

0 comments on commit 9583c57

Please sign in to comment.