21 Commits

Author SHA1 Message Date
Jairo Llopis
80437a57ca lorri: don't start until daemon is really running
Sometimes a race condition will make the events stream start after the
daemon is running, and then no events will be streamed.

This fixes the problem by checking the daemon status and failing the
unit if not ready yet. It will restart 5 seconds later, which will
probably be enough.

@moduon MT-1075
2025-10-25 21:21:03 -05:00
Jairo Llopis
d9ded14b74 lorri: restart notifications if events stream is disconnected
Before this patch, when events stream got disconnected (maybe because a
home rebuild), lorri-notify service wouldn't auto-restart.

@moduon MT-1075
2025-10-25 21:21:03 -05:00
Jairo Llopis
c644cb018f lorri: better notifications
- They disappear automatically in GNOME.
- They display an icon indicating the status.
- The app name is "Lorri".

@moduon MT-1075
2025-10-25 00:26:19 +02:00
Jairo Llopis
817ace497b lorri: make notifications service auto-start if enabled
Without this fix, the notifications service would need to start by hand
every time.

@moduon MT-1075
2025-10-03 23:01:12 -05:00
Austin Horstman
86402a17b6 treewide: flatten single file modules
Some files don't need nesting and can be root level again to reduce
conflicts with other PRs.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-23 16:20:26 -05:00
Austin Horstman
4fca600cb1 treewide: implement auto importing for modules
Reduce maintenance burden and increase efficiency by automatically
importing modules following a specific convention.

Co-authored-by: awwpotato <awwpotato@voidq.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00
Austin Horstman
81541ea36d lorri: fix missing makeSearchPath (#6875) 2025-04-21 14:55:32 -07:00
Austin Horstman
82ee14ff60 treewide: remove with lib (#6871)
Remove from services.
2025-04-21 11:00:59 -05:00
Austin Horstman
cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00
Austin Horstman
f1d4acaa10 treewide: use mkPackageOption (#6727) 2025-03-29 11:48:55 -05:00
Ken Micklas
819f682269 lorri: fix ReadWritePaths for new gcroots behavior
Some checks failed
GitHub Pages / publish (ubuntu-latest) (push) Has been cancelled
Update flake inputs / update (push) Has been cancelled
2024-11-29 13:43:55 +01:00
Judson Lester
4e6d25a51b lorri: systemd allow access to cache directories
Some nix builds require RW access to `.cache/nix` and `.cache/lorri`.
2024-02-24 20:30:51 +01:00
Guillaume Girol
f06edaf18b lorri: unbreak due to too tight sandboxing
lorri needs to be able to write to /run/user/uid for the socket, to its
own cache directory ~/.cache/lorri and to the directory for gc roots.
2024-01-01 09:56:03 +01:00
Judson Lester
a7f0cc2d7b lorri: add nixPackage and enableNotifications options 2022-09-30 23:30:42 +02:00
Naïm Favier
bd11e2c5e6 Replace usage of literalExample
Instead use the new function `literalExpression`. See

  https://github.com/NixOS/nixpkgs/pull/136909
2021-10-13 00:16:10 +02:00
Robert Helgesson
5f433eb164 Move platform check into modules
Before, loading a module would be guarded by an optional platform
condition. This made it possible to avoid loading and evaluating a
module if it did not support the host platform.

Unfortunately, this made it impossible to share a single configuration
between GNU/Linux and Darwin hosts, which some wish to do.

This removes the conditional load and instead inserts host platform
assertions in the modules that are platform specific.

Fixes #1906
2021-07-18 20:43:22 +02:00
Robert Helgesson
a0d9a58616 lorri: make system environment attribute a list
It should be a list to allow inclusions of additional variables.
2020-05-24 12:19:39 +02:00
Wael M. Nasreddine
ad8b644de1 lorri: allow customization of the lorri package
PR #1158
2020-04-24 22:25:54 +02:00
Robert Helgesson
45abf3d38a Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
Ross A. Baker
0fce533e70 lorri: add gitMinimal to daemon path
Fixes https://github.com/target/lorri/issues/255 when the service is
installed through home-manager.

PR #975
2020-01-11 17:19:10 +01:00
Tobias Happ
286dd9b308 lorri: add service 2019-11-17 20:36:27 +01:00