nixcfg/modules/darwin/services/base/default.nix
Harald Hoyer f5670d2c0e Add Zsh shell to Darwin services and setup Harald's dev environment
Add Zsh to the list of available shells in the Darwin services module.
Introduce new Nix configurations for aarch64-darwin, including system packages and font settings.
Set up user-specific environment for Harald on aarch64-darwin system.
2024-11-25 12:42:21 +01:00

64 lines
1,019 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.metacfg;
let
cfg = config.metacfg.base;
in
{
options.metacfg.base = with types; {
enable = mkBoolOpt false "Whether or not to enable the base config.";
};
config = mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
alacritty
age
delta
git
git-crypt
git-delete-merged-branches
home-manager
htop
mosh
nixpkgs-fmt
openssl
restic
rrsync
sops
tmux
vim
wget
starship
];
shells = [
pkgs.fish
pkgs.bash
pkgs.zsh
];
};
programs = {
bash = {
## shellInit = ''
interactiveShellInit = ''
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
'';
};
fish.enable = true;
};
security = {
pam.enableSudoTouchIdAuth = true;
};
};
}