47 lines
1.1 KiB
Nix
47 lines
1.1 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"
|
|
];
|
|
};
|
|
};
|
|
hyprpaper = {
|
|
Unit = {
|
|
Description = "A simple background program for the hypr ecosystem.";
|
|
After = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
};
|
|
Service = {
|
|
ExecStart = "${pkgs.hyprpaper}/bin/hyprpaper";
|
|
Restart = "on-failure";
|
|
Slice = "app-graphical.slice";
|
|
};
|
|
Install = {
|
|
WantedBy = [
|
|
"graphical-session.target"
|
|
"wayland-session@hyprland.desktop.target"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|