inpermanance & idle inhibitor

disable idle inhibitator as it did not work, change the logic to start
and stop of hypridle. Disable inpermanance as the configuration is not
finished yet. Disable whatsie due to an insecure dependencie.
This commit is contained in:
2026-03-12 10:57:41 +01:00
parent a68d326f53
commit 24f5da9ee6
5 changed files with 29 additions and 14 deletions

View File

@@ -5,6 +5,26 @@
./services
];
# home.persistence."/persistent" = {
# directories = [
# "Downloads"
# "Pictures"
# "Documents"
# {
# directory = ".gnupg";
# mode = "0700";
# }
# {
# directory = ".ssh";
# mode = "0700";
# }
# {
# directory = ".local/share/keyrings";
# mode = "0700";
# }
# ];
# };
#
home = {
username = "elias";
homeDirectory = "/home/elias";
@@ -31,18 +51,6 @@
stateVersion = "23.11";
};
systemd.user.services = {
idle-inhibitor = {
Unit = {
Description = "Presentation Mode";
};
Service = {
Type = "simple";
ExecStart = "systemd-inhibit --what=idle --who=Caffeine --why=Caffeine --mode=block sleep inf";
};
};
};
programs.home-manager.enable = true;
nixpkgs.config = {

View File

@@ -51,14 +51,14 @@
;; ── Idle Inhibitor ──────────────────────────────────────────────────
(deflisten idle_inhibitor "journalctl --output=cat --output-fields=JOB_TYPE --user --follow --unit=idle-inhibitor")
(deflisten idle_inhibitor "journalctl --output=cat --output-fields=JOB_TYPE --user --follow --unit=hypridle.service")
(defwidget idle_inhibitor []
(box
:space-evenly false
(button
:class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }"
:onclick "systemctl is-active idle-inhibitor.service && systemctl stop idle-inhibitor.service || systemctl start idle-inhibitor.service"
:onclick "systemctl --user is-active hypridle.service && systemctl --user stop hypridle.service || systemctl --user start hypridle.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
;; ── Audio ───────────────────────────────────────────────────────────

View File

@@ -7,5 +7,6 @@
signal-desktop
slack
telegram-desktop
# whatsie
];
}