2024-12-10 21:36:03 +08:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
home.packages = with pkgs; [ valent ];
|
|
|
|
|
|
|
|
systemd.user.services.valent = {
|
|
|
|
Unit = {
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
After = [ "graphical-session.target" ];
|
|
|
|
Requisite = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.valent}/bin/valent --gapplication-service";
|
|
|
|
Restart = "on-failure";
|
|
|
|
};
|
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
2024-12-13 22:43:32 +08:00
|
|
|
|
2024-12-26 13:35:29 +08:00
|
|
|
preservation.preserveAt."/persist".directories = [ ".config/valent" ];
|
2024-12-10 21:36:03 +08:00
|
|
|
}
|