sway: Manage mako with systemd
This commit is contained in:
parent
e17aa4bc6b
commit
ceda178acf
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue