2023-09-02 06:20:36 +01:00
|
|
|
{ lib, pkgs, user, shell ? "zsh", ... }:
|
2023-08-31 12:22:29 +01:00
|
|
|
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-09-02 06:20:36 +01:00
|
|
|
../../home/pass/default.nix
|
|
|
|
../../home/git/default.nix
|
|
|
|
../../home/ssh/default.nix
|
|
|
|
../../home/tui/default.nix
|
|
|
|
../../home/tmux/default.nix
|
|
|
|
../../home/mail/default.nix
|
|
|
|
../../home/alacritty/default.nix
|
|
|
|
../../home/emacs/default.nix
|
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-07-16 17:35:36 +01:00
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
}
|