Improved? battery life + pkgs functions

This commit is contained in:
Aleksandr Lebedev 2025-08-11 23:28:50 +02:00
parent 3d5d222c1d
commit ed48a77b93
7 changed files with 115 additions and 21 deletions

View file

@ -24,7 +24,7 @@ in {
ExecStart = "${pkgs.writeShellScript "run-emacs" ''
${emacs}/bin/emacs --fg-daemon
''}";
Restart = "on-failure";
Restart = "always";
RestartSec = 5;
};
};

View file

@ -46,11 +46,6 @@ in
"${lib.getExe pkgs.networkmanagerapplet}"
];
}
{
command = [
"${lib.getExe pkgs.networkmanagerapplet}"
];
}
{
command = [
"dbus-update-activation-environment"
@ -275,7 +270,7 @@ in
settings.listener = let
secondary = "${systemctl} suspend";
in
lib.mkIf (osConfig.custom.hardware.battery.enable) [
lib.optionals (osConfig.custom.hardware.battery.enable) [
#{
# timeout = 30;
# command = "pidof hyprlock && ${secondary}";
@ -290,13 +285,6 @@ in
}
];
};
services = {
mako = {
enable = false;
settings = {
};
};
};
systemd.user.services.lisgd-niri = lib.mkIf (osConfig.custom.hardware.framework12.enable) {
Unit = {
Description = "Makes sure that you have touchscreen gestures.";