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:
parent
4292f4c334
commit
f5670d2c0e
32
homes/aarch64-darwin/harald@m4/default.nix
Normal file
32
homes/aarch64-darwin/harald@m4/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -41,6 +41,7 @@ in
|
|||
shells = [
|
||||
pkgs.fish
|
||||
pkgs.bash
|
||||
pkgs.zsh
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -27,11 +27,14 @@ in
|
|||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-emoji
|
||||
(nerdfonts.override { fonts = [ "Hack" ]; })
|
||||
(nerdfonts.override {
|
||||
fonts = [
|
||||
"Hack"
|
||||
"FiraCode"
|
||||
"DroidSansMono"
|
||||
"JetBrainsMono"
|
||||
];
|
||||
})
|
||||
]
|
||||
++ cfg.fonts;
|
||||
};
|
||||
|
|
23
systems/aarch64-darwin/m4/default.nix
Normal file
23
systems/aarch64-darwin/m4/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue