2023-08-31 12:22:29 +01:00
|
|
|
{ pkgs, user, shell ? "zsh", ... }:
|
|
|
|
let homeDirectory = "/Users/${user}";
|
2023-07-16 17:35:36 +01:00
|
|
|
in {
|
|
|
|
imports = [
|
2023-08-31 12:22:29 +01:00
|
|
|
../../home/shell/${shell}.nix
|
2023-08-18 12:19:52 +01:00
|
|
|
../../home/git
|
|
|
|
../../home/ssh
|
|
|
|
../../home/tui
|
2023-08-31 08:21:21 +01:00
|
|
|
../../home/tmux
|
2023-08-18 12:19:52 +01:00
|
|
|
../../home/alacritty
|
2023-08-28 12:48:56 +01:00
|
|
|
../../home/emacs
|
2023-07-16 17:35:36 +01:00
|
|
|
];
|
|
|
|
home = {
|
2023-08-31 12:22:29 +01:00
|
|
|
inherit homeDirectory;
|
|
|
|
username = user;
|
2023-07-16 17:35:36 +01:00
|
|
|
stateVersion = "23.05";
|
2023-08-28 12:48:56 +01:00
|
|
|
packages = with pkgs; [ coreutils-prefixed ];
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
zsh = {
|
|
|
|
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
|
|
|
|
envExtra = ''
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
|
|
'';
|
|
|
|
};
|
2023-08-28 12:48:56 +01:00
|
|
|
emacs.package = pkgs.emacs29;
|
2023-08-31 08:21:21 +01:00
|
|
|
gpg.enable = true;
|
|
|
|
password-store = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
|
|
|
|
settings.PASSWORD_STORE_DIR = "$HOME/.password-store";
|
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
}
|