Improved? battery life + pkgs functions
This commit is contained in:
parent
3d5d222c1d
commit
ed48a77b93
7 changed files with 115 additions and 21 deletions
|
|
@ -24,7 +24,7 @@ in {
|
|||
ExecStart = "${pkgs.writeShellScript "run-emacs" ''
|
||||
${emacs}/bin/emacs --fg-daemon
|
||||
''}";
|
||||
Restart = "on-failure";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue