Replace hyprpaper with gslapper

This commit is contained in:
Eriq Taing
2026-09-02 23:14:38 -04:00
parent 10a3719f6d
commit 7d437dce03
3 changed files with 25 additions and 6 deletions
+18 -4
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
systemd.user.services = {
@@ -22,18 +22,32 @@
];
};
};
hyprpaper = {
gslapper = {
Unit = {
Description = "A simple background program for the hypr ecosystem.";
Description = "gSlapper Wallpaper Service";
After = [
"graphical-session.target"
"wayland-session@hyprland.desktop.target"
];
Wants = [
"graphical-session.target"
"wayland-session@hyprland.desktop.target"
];
};
Service = {
ExecStart = "${pkgs.hyprpaper}/bin/hyprpaper";
Type = "notify";
ExecStart = "${inputs.gslapper.packages.x86_64-linux.gslapper}/bin/gslapper --systemd --restore '*'";
ExecReload = "kill -HUP $MAINPID";
Restart = "on-failure";
RestartSec = "5";
TimeoutStopSec = "30";
Slice = "app-graphical.slice";
EnvironmentFile = "%h/.config/gslapper/environment";
Environment = "XDG_RUNTIME_DIR=%t";
MemoryMax = "512M";
CPUQuota = "50%";
NoNewPrivileges = "true";
PrivateTmp = "true";
};
Install = {
WantedBy = [