sway: Manage mako with systemd

pull/48/head
Simon Bruder 2021-03-02 09:49:15 +01:00
parent e17aa4bc6b
commit ceda178acf
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 10 additions and 2 deletions

View File

@ -215,8 +215,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
extraConfig = ''
# Cursor
seat seat0 xcursor_theme Adwaita
exec ${pkgs.mako}/bin/mako
'';
extraSessionCommands = ''
@ -499,6 +497,16 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
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 = {
enable = true;
package = pkgs.redshift-wlr;