sway: Manage mako with systemd

This commit is contained in:
Simon Bruder 2021-03-02 09:49:15 +01:00
parent e17aa4bc6b
commit ceda178acf
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -215,8 +215,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
extraConfig = '' extraConfig = ''
# Cursor # Cursor
seat seat0 xcursor_theme Adwaita seat seat0 xcursor_theme Adwaita
exec ${pkgs.mako}/bin/mako
''; '';
extraSessionCommands = '' extraSessionCommands = ''
@ -499,6 +497,16 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
defaultTimeout = 5000; defaultTimeout = 5000;
}; };
systemd.user.services.mako = {
Unit.PartOf = [ "sway-session.target" ];
Install.WantedBy = [ "sway-session.target" ];
Service = {
ExecStart = "${pkgs.mako}/bin/mako";
Restart = "on-failure";
};
};
services.redshift = { services.redshift = {
enable = true; enable = true;
package = pkgs.redshift-wlr; package = pkgs.redshift-wlr;