diff --git a/flake.nix b/flake.nix index 22e35eb..b4d3448 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,12 @@ ]; }; + homeManagerModules.macos = { ... }: { + imports = [ + ./home/macos/home.nix + ]; + }; + homeManagerModules.develop = { ... }: { imports = [ ./home/develop/emacs.nix diff --git a/home/macos/home.nix b/home/macos/home.nix new file mode 100644 index 0000000..4f74514 --- /dev/null +++ b/home/macos/home.nix @@ -0,0 +1,26 @@ +{ lib, pkgs, ... }: +{ + # Set default terminal environment variable + home.sessionVariables = { + TERMINAL = lib.mkForce "open -a Terminal.app ."; + }; + + # Add NPM installed programs to PATH. + home.sessionPath = [ + "/Users/tbingmann/.npm-global/bin" + ]; + + # GnuPG configuration + programs.gpg = { + enable = true; + }; + + services.gpg-agent = { + enable = true; + enableScDaemon = false; + enableSshSupport = false; + pinentry = { + package = pkgs.pinentry_mac; + }; + }; +}