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
+7 -1
View File
@@ -9,18 +9,24 @@
url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
gslapper = {
url = "github:Nomadcxx/gSlapper";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
inputs@{
nixpkgs,
home-manager,
stylix,
gslapper,
...
}:
{
homeConfigurations."eriq12" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [
stylix.homeModules.stylix
./home.nix
-1
View File
@@ -97,7 +97,6 @@
dark = "Papirus-Dark";
light = "Papirus-Light";
};
targets.hyprpaper.enable = false;
};
# Services
+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 = [