summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--shell.nix3
-rw-r--r--system/settings/darwin.nix11
-rw-r--r--system/settings/programs/base.nix1
3 files changed, 15 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 00000000..9730ebde
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,3 @@
+{ system ? builtins.currentSystem }:
+
+(builtins.getFlake (toString ./.)).devShell.${system}
diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix
index 460d47bd..323b00d6 100644
--- a/system/settings/darwin.nix
+++ b/system/settings/darwin.nix
@@ -32,6 +32,17 @@
     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 = ''
diff --git a/system/settings/programs/base.nix b/system/settings/programs/base.nix
index 3dcde23e..bfc81312 100644
--- a/system/settings/programs/base.nix
+++ b/system/settings/programs/base.nix
@@ -1,4 +1,5 @@
 { pkgs, ... }: {
+  services.lorri.enable = true;
   environment.systemPackages = with pkgs; [
     home-manager
     lzma