darwin: add emanote service

This commit is contained in:
Sridhar Ratnakumar 2022-11-27 20:27:21 -05:00
parent feb52b9a65
commit 0282c3601b
3 changed files with 185 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, inputs, system, rosettaPkgs, ... }:
{ config, pkgs, lib, inputs, system, rosettaPkgs, ... }:
{
# List packages installed in system profile. To search by name, run:
@ -55,9 +55,22 @@
}
];
};
nixpkgs.config.allowBroken = true;
# TODO: Upstream to emanote
# launchctl start org.nixos.emanote
launchd.user.agents.emanote = {
serviceConfig.ProgramArguments = [
(lib.getExe inputs.emanote.packages.${system}.default)
"-L"
"/Users/srid/Keybase/Notes"
"run"
"-p"
"7000"
];
serviceConfig.RunAtLoad = true;
};
security.pam.enableSudoTouchIdAuth = true;
# For home-manager to work.