feat: made quickshell systemd service
This commit is contained in:
31
home/services.nix
Normal file
31
home/services.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user