2024-11-04 04:37:29 +03:00
|
|
|
{ ... }: {
|
|
|
|
# HACK: Fix for broken tmpfiles setup for some services like PowerLimit.
|
|
|
|
systemd.timers.tmpfilesfix = {
|
|
|
|
timerConfig = {
|
|
|
|
OnBootSec = 5;
|
|
|
|
Unit = "systemd-tmpfiles-resetup.service";
|
|
|
|
};
|
|
|
|
wantedBy = [
|
|
|
|
"timers.target"
|
|
|
|
];
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
# Systemd custom target for Sway.
|
|
|
|
systemd.user.targets.gui-session = {
|
|
|
|
after = [ "graphical-session-pre.target" ];
|
|
|
|
bindsTo = [ "graphical-session.target" ];
|
|
|
|
description = "GUI session.";
|
|
|
|
documentation = [ "man:systemd.special(7)" ];
|
|
|
|
wants = [ "graphical-session-pre.target" ];
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
}
|