BX2EXA45RHKBK4ZFZYUMHYDYKRVIUQJZDW6O643XUHKI5LVNDSJAC
WEC7RJUMNJX6A46INFCR5Q3GM5O3BCAYAF4UUISJDYXWIL5II36AC
NC3PZB4VVLIWOHU2OONGNZT3LYZO7ZRZMBMFCBYU2464VG3VLX4QC
DCJDPW7CQ5OR75ECIVESHYVC5JSXZ5CKV6E3EWLRFHHKAKE7JGKAC
4A5J4ZQ3HM2ZK6OO7N3RZ2WX3YHNGA3X5WJIB4UQJPQGUG4O3AYQC
MAIEPZVQNNMHNN5MJ4UVPR5D7M3EE4B6QEBTR7L3KQERPUKOD5IQC
QADXBPZPPIAICY2HTCAZSZYX33TG72CXI2XZOG3DCNMOIXAPWQMQC
VXESMJDKIRYTNWV6PVDZUSECSP7ESMK5LZPEE72DFBUU5MH7GWLAC
A32NGEIBDOOKELILD6YPAGDCEDVVSYBSNJNS4RDXB7SHBQNIVNPQC
723QWZKMMKC44ZAQQYSSOPCB65TKSORXU2D4PIHWOUEKICJGUBVAC
O64A6IJJGMWJYUDR6VUFGYFPWWPN222BEMMLFCMLKDEFO5OVRE4QC
BN7PSYS5IMGH4CXNCQZGOWBETO7KY4TKICB4ESZEZVXVGLOPVV7QC
{ config, pkgs, ... }:
let
userName = "<username>";
homeDirectory = "/Users/<username>";
in {
users.users."${userName}" = {
name = "${userName}";
home = "${homeDirectory}";
};
# this is responsible for hooking up all of our home-manager config
home-manager.users."${userName}" = { pkgs, ... }: {
imports = [ ../home.nix ];
};
}
# enable launchd daemon for mbsync to sync and index emails if emails are configured in home-manager config
launchd.user.agents.mbsync = if config.home-manager.users.christophercummings.accounts.email.accounts != {} then {
command = "${pkgs.isync}/bin/mbsync -a && mu ${pkgs.mu}/bin/mu index";
serviceConfig.StartInterval = 60 * 5;
} else {};
* create `darwin/local_config.nix` based on `darwin/example_local_config.nix`
``` shell
cp ~/dotfiles/nixpkgs/darwin/example_local_config.nix ~/dotfiles/nixpkgs/darwin/local_config.nix
```
* modify `darwin/local_config.nix` by adding the right user name and home directory
/nixpkgs/darwin/local_config.nix