all repos — nixfiles @ 0b95bda2a740a02932a8d196f9642737c14d0ea7

System and user configuration, managed by nix and home-manager

set up lorri
Alan Pearce alan@alanpearce.eu
Mon, 29 Apr 2024 17:53:31 +0200
commit

0b95bda2a740a02932a8d196f9642737c14d0ea7

parent

308aeafae2ee7348a79e6320c9ef4fb4ef669260

3 files changed, 15 insertions(+), 0 deletions(-)

jump to
A shell.nix
@@ -0,0 +1,3 @@+{ system ? builtins.currentSystem }:
+
+(builtins.getFlake (toString ./.)).devShell.${system}
M system/settings/darwin.nixsystem/settings/darwin.nix
@@ -32,6 +32,17 @@ nixpkgs.config = {     allowUnfree = true;
   };
 
+  launchd.user.agents.lorri = lib.mkIf config.services.lorri.enable {
+    serviceConfig = {
+      RunAtLoad = lib.mkForce false;
+      Sockets = {
+        daemon = {
+          SockPathName = "${(builtins.getEnv "HOME")}/Library/Caches/com.github.target.lorri.lorri.lorri/daemon.socket";
+        };
+      };
+    };
+  };
+
   environment.launchDaemons = {
     "limit.maxfiles.plist" = {
       text = ''
M system/settings/programs/base.nixsystem/settings/programs/base.nix
@@ -1,4 +1,5 @@ { pkgs, ... }: {
+  services.lorri.enable = true;
   environment.systemPackages = with pkgs; [
     home-manager
     lzma