61 lines
1.5 KiB
Nix
61 lines
1.5 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
systemd.user.services = {
|
|
hyprlauncher = {
|
|
Unit = {
|
|
Description = "A launcher for the hypr ecosystem.";
|
|
After = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
};
|
|
Service = {
|
|
ExecStart = "${pkgs.hyprlauncher}/bin/hyprlauncher -d";
|
|
Restart = "on-failure";
|
|
Slice = "app-graphical.slice";
|
|
};
|
|
Install = {
|
|
WantedBy = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
};
|
|
};
|
|
awww = {
|
|
Unit = {
|
|
Description = "An Answer to your Wayland Wallpaper Woes";
|
|
Documentation = "man:awww-daemon(1)";
|
|
PartOf = [
|
|
"graphical-session.target"
|
|
];
|
|
After = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
Requisite = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
WantedBy = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
};
|
|
Service = {
|
|
Type = "simple";
|
|
ExecStart = "${pkgs.awww}/bin/awww-daemon";
|
|
Restart = "on-failure";
|
|
RestartSec = "1";
|
|
Slice = "app-graphical.slice";
|
|
};
|
|
Install = {
|
|
WantedBy = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|