dotfiles/home-manager/modules/picom/default.nix

22 lines
478 B
Nix
Raw Normal View History

{
pkgs,
lib,
...
}: {
home.file.".config/picom.conf".source = ./picom.conf;
systemd.user.services.picom = {
Unit = {
Description = "Picom compositor";
After = ["graphical-session-pre.target"];
PartOf = ["graphical-session.target"];
};
Service = {
Type = "simple";
ExecStart = ''/bin/sh -l -c "${lib.getExe pkgs.picom} --config ~/.config/picom.conf"'';
};
Install = {WantedBy = ["graphical-session.target"];};
};
}