feat: Add mako as a systemd service

fix #28
This commit is contained in:
Charlotte 🦝 Delenk 2022-03-06 10:29:25 +01:00
parent 259af8dda9
commit 1105e2de4a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 15 additions and 3 deletions

14
config/programs/mako.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, ... }: {
systemd.user.services.mako = {
Unit = {
Description = "mako";
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.mako}/bin/mako --default-timeout 30000";
};
};
}

View file

@ -1,6 +1,7 @@
{ config, pkgs, lib, ... }: {
imports = [
./wl-clipboard.nix
./mako.nix
];
wayland.windowManager.sway = {
enable = true;
@ -50,9 +51,6 @@
};
};
startup = [
{
command = "${pkgs.mako}/bin/mako";
}
{
command = "${pkgs.swayidle}/bin/swayidle -w timeout 300 '${pkgs.swaylock}/bin/swaylock -f -c 000000' timeout 305 '${pkgs.sway}/bin/swaymsg \"output * dpms off\"' resume '${pkgs.sway}/bin/swaymsg \"output * dpms on\"' lock '${pkgs.swaylock}/bin/swaylock -f -c 000000' unlock '${pkgs.procps}/bin/pkill swaylock'";
}