From 4e8afde77e7b2c6925af3a0e49c823a85377609a Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Sat, 17 Aug 2024 22:18:04 +0200 Subject: [PATCH] fix(user/malte): darkman startup Startup failed because the activation script that updates the hyprpaper configuration was hitting the hyprpaper backend before it was ready. --- users/malte/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/users/malte/default.nix b/users/malte/default.nix index db69e72..8ca8ca7 100644 --- a/users/malte/default.nix +++ b/users/malte/default.nix @@ -1,6 +1,7 @@ { pkgs, lib, + config, nixosConfig, ... }: let @@ -211,6 +212,12 @@ in { lng = 12.36; }; }; + # This ensures that the hyprpaper scripts for darkman only run after the + # backend for hyprpaper is running + systemd.user.services.darkman.Unit.After = + if builtins.hasAttr "hyprpaper" config.systemd.user.services + then ["hyprpaper.service"] + else []; services.mpris-proxy.enable = true; services.pasystray.enable = true;