fix: patch kanshi-sni reconnect handling
This commit is contained in:
@@ -1,16 +1,26 @@
|
||||
{ config, inputs, pkgs, makeEnable, ... }:
|
||||
let
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
kanshiSniPackage =
|
||||
inputs.kanshi-sni.packages.${system}.default.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [
|
||||
./patches/kanshi-sni-refresh-and-reconnect.patch
|
||||
];
|
||||
});
|
||||
in
|
||||
makeEnable config "myModules.sni" true {
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
systemd.user.services.kanshi-sni = {
|
||||
Unit = {
|
||||
Description = "kanshi-sni tray app";
|
||||
After = [ "graphical-session.target" "tray.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" "tray.target" "kanshi.service" ];
|
||||
PartOf = [ "graphical-session.target" "kanshi.service" ];
|
||||
Requires = [ "tray.target" ];
|
||||
Wants = [ "kanshi.service" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${inputs.kanshi-sni.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/kanshi-sni";
|
||||
ExecStart = "${kanshiSniPackage}/bin/kanshi-sni";
|
||||
Restart = "always";
|
||||
RestartSec = 3;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user