2023-06-11 23:09:59 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-06-11 23:09:59 +02:00
|
|
|
home.file.".config/picom.conf".source = ./picom.conf;
|
|
|
|
systemd.user.services.picom = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Picom compositor";
|
2024-03-02 22:05:30 +01:00
|
|
|
After = ["graphical-session-pre.target"];
|
|
|
|
PartOf = ["graphical-session.target"];
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
|
|
|
ExecStart = ''/bin/sh -l -c "${lib.getExe pkgs.picom} --config ~/.config/picom.conf"'';
|
|
|
|
};
|
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
Install = {WantedBy = ["graphical-session.target"];};
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
}
|