Files
nixos-dots/home/services.nix
Zastian Pretorius 00a79a16fc balls to the wall
2025-08-05 12:07:12 +01:00

33 lines
699 B
Nix

{
config,
lib,
pkgs,
inputs,
window_manager,
...
}:
let
quickshellPackage = inputs.caelestia.packages.${pkgs.system}.caelestia-shell;
in
{
systemd.user.services.quickshell = lib.mkIf (window_manager == "hyprland") {
Unit = {
Description = "QuickShell Application";
After = [ "graphical-session.target" ];
Requires = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${quickshellPackage}/bin/caelestia-shell";
ExecStartPre = "/bin/sh -c 'test -n \"$WAYLAND_DISPLAY\"'";
Restart = "always";
RestartSec = "5s";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}