From c90590640f48bb27a7eb8d49d76d2b9fdec27ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 30 Jul 2024 20:24:44 +0200 Subject: [PATCH] Attempt at stuff --- curacao/desk/desk_mqtt.py | 5 ++++- hm/password/default.nix | 2 +- os/desktop/default.nix | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/curacao/desk/desk_mqtt.py b/curacao/desk/desk_mqtt.py index 7d836f4..44c4002 100755 --- a/curacao/desk/desk_mqtt.py +++ b/curacao/desk/desk_mqtt.py @@ -145,6 +145,9 @@ class Desk: delta_s = now - self.last_est if delta_s > self.MAX_EST_INTERVAL: + # Attempt at fixing the issue of + # the service not working after the night + self._initialize() self.log.warning( "Too long without getting a report, " "assuming the desk might be anywhere now." @@ -262,7 +265,7 @@ class Desk: if __name__ == "__main__": - logging.basicConfig(level=logging.INFO) + logging.basicConfig(level=logging.DEBUG) log = logging.getLogger(__name__) desk = Desk() diff --git a/hm/password/default.nix b/hm/password/default.nix index a5cc8de..4d2c63a 100644 --- a/hm/password/default.nix +++ b/hm/password/default.nix @@ -62,7 +62,7 @@ in description = "Path to the password store entry"; }; selector = lib.mkOption { - type = lib.types.str; + type = lib.types.nullOr lib.types.str; default = null; description = "If set, will parse the password metadata as YML and use selector (yq) instead of the password."; }; diff --git a/os/desktop/default.nix b/os/desktop/default.nix index 469f1c9..c873a55 100644 --- a/os/desktop/default.nix +++ b/os/desktop/default.nix @@ -23,7 +23,7 @@ actions.update-props = { "session.suspend-timeout-seconds" = 0; "dither.method" = "wannamaker3"; - "dither.noise" = 2; + "dither.noise" = 4; }; } ];