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 = ''
|
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;
|
||||||
|
|
Loading…
Reference in a new issue