You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
74 lines
1.6 KiB
3 months ago
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
home.username = "felix";
|
||
|
home.homeDirectory = "/home/felix";
|
||
|
|
||
|
# encode the file content in nix configuration file directly
|
||
|
# home.file.".xxx".text = ''
|
||
|
# xxx
|
||
|
# '';
|
||
|
|
||
|
home.packages = with pkgs; [
|
||
|
# nix related
|
||
|
nix-output-monitor
|
||
|
];
|
||
|
|
||
|
# basic configuration of git, please change to your own
|
||
|
programs.git = {
|
||
|
enable = true;
|
||
|
userName = "Ryan Yin";
|
||
|
userEmail = "xiaoyin_c@qq.com";
|
||
|
};
|
||
|
|
||
|
# starship - an customizable prompt for any shell
|
||
|
programs.starship = {
|
||
|
enable = true;
|
||
|
# custom settings
|
||
|
settings = {
|
||
|
add_newline = false;
|
||
|
aws.disabled = true;
|
||
|
gcloud.disabled = true;
|
||
|
line_break.disabled = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.alacritty = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
env.TERM = "xterm-256color";
|
||
|
font = {
|
||
|
size = 12;
|
||
|
draw_bold_text_with_bright_colors = true;
|
||
|
};
|
||
|
scrolling.multiplier = 5;
|
||
|
selection.save_to_clipboard = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.zsh = {
|
||
|
enable = true;
|
||
|
enableCompletion = true;
|
||
|
autosuggestion.enable = true;
|
||
|
syntaxHighlighting.enable = true;
|
||
|
shellAliases = {
|
||
|
ls = "exa -lh";
|
||
|
ll = "ls -a";
|
||
|
update = "sudo nixos-rebuild switch";
|
||
|
};
|
||
|
initContent = lib.mkOrder 1500 ''
|
||
|
# source "~/.config/ssh-find-agend.sh"
|
||
|
emulate ksh -c "source ~/.config/ssh-find-agent.sh"
|
||
|
ssh-add -l >&/dev/null || ssh-find-agent -a || eval $(ssh-agent) > /dev/null
|
||
|
'';
|
||
|
|
||
|
history.size = 10000;
|
||
|
oh-my-zsh = {
|
||
|
enable = true;
|
||
|
plugins = [ "git" ];
|
||
|
theme = "robbyrussell";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
home.stateVersion = "25.05";
|
||
|
}
|