refactor: migrate nix-darwin config to a flake-parts dendritic layout

This commit is contained in:
Poby 2026-03-26 09:03:35 +09:00
parent f80b0b0d4f
commit 09801ac429
No known key found for this signature in database
84 changed files with 1029 additions and 687 deletions

View file

@ -1,49 +0,0 @@
{config, ...}: {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
defaultKeymap = "viins";
history = {
size = 10000;
save = 10000;
share = true;
ignoreAllDups = true;
ignoreDups = true;
ignoreSpace = true;
};
shellAliases = {
poby = "echo my name is poby";
nixconfig = "cd ~/nix-darwin && vim flake.nix";
just-darwin = "cd ~/nix-darwin && just darwin $(hostname)";
};
sessionVariables = {
EDITOR = "nvim";
};
initContent = ''
export GH_TOKEN="$(cat ${config.sops.secrets."github_cli_token".path})"
'';
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"git"
"gitignore"
"history"
"sudo"
"vi-mode"
"zoxide"
"eza"
"mise"
];
};
};
}