mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat: some more home-manager programs
This commit is contained in:
parent
54297f94fd
commit
88baae6581
8 changed files with 35 additions and 118 deletions
|
|
@ -11,6 +11,7 @@
|
|||
primaryUser = username;
|
||||
stateVersion = 6;
|
||||
|
||||
# symlink /Applications/Nix Apps to /Applications for Spotlight
|
||||
activationScripts.extraActivation.text = ''
|
||||
# activateSettings -u will reload the settings from the database and apply them to the current session,
|
||||
# so we do not need to logout and login again to make the changes take effect.
|
||||
|
|
@ -177,52 +178,14 @@
|
|||
# Add ability to used TouchID for sudo authentication
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||
# this is required if you want to use darwin's default shell - zsh
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
# enableCompletion = true;
|
||||
# enableAutosuggestions = true;
|
||||
# enableFastSyntaxHighlighting = true;
|
||||
# enableFzfCompletion = true;
|
||||
# enableFzfGit = true;
|
||||
# enableFzfHistory = true;
|
||||
# promptInit = ''
|
||||
# source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||
# source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
|
||||
# '';
|
||||
};
|
||||
|
||||
environment = {
|
||||
shells = [
|
||||
pkgs.zsh
|
||||
];
|
||||
# shellAliases = {
|
||||
# ls = "lsd --color=auto";
|
||||
# l = "lsd -lhG";
|
||||
# lt = "l --tree";
|
||||
# ll = "lsd -alhG";
|
||||
# lh = "lsd -dl .*";
|
||||
# lsd = "lsd --group-directories-first";
|
||||
# filecount = "find . -type f | wc -l";
|
||||
# cat = "bat --color=always";
|
||||
# man = "tldr";
|
||||
# nixrebuild = "sudo darwin-rebuild switch --flake ~/.config/nix-darwin";
|
||||
# nixupgrade = "cd ~/.config/nix-darwin && nix flake update";
|
||||
# nixconfig = "nvim ~/.config/nix-darwin";
|
||||
# sshconfig = "nvim ~/.ssh/config";
|
||||
#
|
||||
# # git
|
||||
# g = "git";
|
||||
# gaa = "git add --all";
|
||||
# gcm = "git commit -m";
|
||||
# gca = "git commit --amend";
|
||||
# gst = "git status";
|
||||
# gco = "git checkout";
|
||||
# gl = "git pull";
|
||||
# gp = "git push";
|
||||
# glg = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short";
|
||||
# };
|
||||
};
|
||||
|
||||
fonts = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue