nixos-config/home-manager/profiles/valent/default.nix

20 lines
516 B
Nix
Raw Normal View History

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
preservation.preserveAt."/persist".directories = [ ".config/valent" ];
2024-12-10 21:36:03 +08:00
}