Replace hyprpaper with gslapper
This commit is contained in:
@@ -9,18 +9,24 @@
|
|||||||
url = "github:nix-community/stylix";
|
url = "github:nix-community/stylix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
gslapper = {
|
||||||
|
url = "github:Nomadcxx/gSlapper";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
inputs@{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
stylix,
|
stylix,
|
||||||
|
gslapper,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
homeConfigurations."eriq12" = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations."eriq12" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
stylix.homeModules.stylix
|
stylix.homeModules.stylix
|
||||||
./home.nix
|
./home.nix
|
||||||
|
|||||||
@@ -97,7 +97,6 @@
|
|||||||
dark = "Papirus-Dark";
|
dark = "Papirus-Dark";
|
||||||
light = "Papirus-Light";
|
light = "Papirus-Light";
|
||||||
};
|
};
|
||||||
targets.hyprpaper.enable = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Services
|
# Services
|
||||||
|
|||||||
+18
-4
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
@@ -22,18 +22,32 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
hyprpaper = {
|
gslapper = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "A simple background program for the hypr ecosystem.";
|
Description = "gSlapper Wallpaper Service";
|
||||||
After = [
|
After = [
|
||||||
"graphical-session.target"
|
"graphical-session.target"
|
||||||
"wayland-session@hyprland.desktop.target"
|
"wayland-session@hyprland.desktop.target"
|
||||||
];
|
];
|
||||||
|
Wants = [
|
||||||
|
"graphical-session.target"
|
||||||
|
"wayland-session@hyprland.desktop.target"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
Service = {
|
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";
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5";
|
||||||
|
TimeoutStopSec = "30";
|
||||||
Slice = "app-graphical.slice";
|
Slice = "app-graphical.slice";
|
||||||
|
EnvironmentFile = "%h/.config/gslapper/environment";
|
||||||
|
Environment = "XDG_RUNTIME_DIR=%t";
|
||||||
|
MemoryMax = "512M";
|
||||||
|
CPUQuota = "50%";
|
||||||
|
NoNewPrivileges = "true";
|
||||||
|
PrivateTmp = "true";
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [
|
WantedBy = [
|
||||||
|
|||||||
Reference in New Issue
Block a user