Skip to content

Commit 3216852

Browse files
committed
chore(user/refnode): add keepassxc as launch agent
1 parent 5083f96 commit 3216852

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

users/refnode/common/darwin/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
}: {
77
imports = [
88
./aerospace.nix
9+
./service-keepassxc.nix
910
];
1011
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
homeDirectory,
6+
...
7+
}: let
8+
serviceName = "io.refnode.keepassxc";
9+
in {
10+
launchd.user.agents.keepassxc = {
11+
serviceConfig = {
12+
Label = serviceName;
13+
StandardOutPath = "${homeDirectory}/Library/Logs/${serviceName}.log";
14+
StandardErrorPath = "${homeDirectory}/Library/Logs/${serviceName}.error.log";
15+
KeepAlive = true;
16+
RunAtLoad = true;
17+
Program = "${pkgs.keepassxc}/Applications/KeePassXC.app/Contents/MacOS/KeePassXC";
18+
};
19+
};
20+
}

0 commit comments

Comments
 (0)