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.
This commit is contained in:
Harald Hoyer 2024-11-25 12:42:21 +01:00
parent 4292f4c334
commit f5670d2c0e
4 changed files with 64 additions and 5 deletions

View file

@ -0,0 +1,32 @@
{
lib,
pkgs,
config,
...
}:
{
home = {
username = "harald";
homeDirectory = "/Users/${config.home.username}";
stateVersion = "23.11"; # Please read the comment before changing.
# sessionPath = [ "$HOME/bin" ];
};
metacfg = {
cli-apps = {
bash.enable = true;
fish.enable = true;
#neovim.enable = true;
bat.enable = true;
starship.enable = true;
#home-manager.enable = true;
};
tools = {
direnv.enable = true;
ssh.enable = true;
git.enable = true;
};
};
}

View file

@ -41,6 +41,7 @@ in
shells = [ shells = [
pkgs.fish pkgs.fish
pkgs.bash pkgs.bash
pkgs.zsh
]; ];
}; };

View file

@ -27,11 +27,14 @@ in
packages = packages =
with pkgs; with pkgs;
[ [
noto-fonts (nerdfonts.override {
noto-fonts-cjk-sans fonts = [
noto-fonts-cjk-serif "Hack"
noto-fonts-emoji "FiraCode"
(nerdfonts.override { fonts = [ "Hack" ]; }) "DroidSansMono"
"JetBrainsMono"
];
})
] ]
++ cfg.fonts; ++ cfg.fonts;
}; };

View file

@ -0,0 +1,23 @@
{ lib, pkgs, ... }:
with lib.metacfg;
{
metacfg = {
suites = {
common = enabled;
};
};
environment.systemPackages = with pkgs; [
# azure-cli
kubectl
kubectx
k9s
attic-client
ollama
];
users.users.harald.shell = pkgs.fish;
system.stateVersion = 4;
}