Replace hyprpaper with gslapper
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -97,7 +97,6 @@
|
||||
dark = "Papirus-Dark";
|
||||
light = "Papirus-Light";
|
||||
};
|
||||
targets.hyprpaper.enable = false;
|
||||
};
|
||||
|
||||
# Services
|
||||
|
||||
+18
-4
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user