feat: made quickshell systemd service

This commit is contained in:
mrfluffy-dev
2025-06-23 20:28:25 +01:00
parent d2bfbc77b4
commit 3f1f6eaa74
5 changed files with 36 additions and 3 deletions

31
home/services.nix Normal file
View File

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