mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
53 lines
1.3 KiB
Nix
Executable File
53 lines
1.3 KiB
Nix
Executable File
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
system.userActivationScripts.zshrc = "touch .zshrc";
|
|
users.defaultUserShell = pkgs.zsh;
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
enableBashCompletion = true;
|
|
syntaxHighlighting.enable = true;
|
|
zsh-autoenv.enable = true;
|
|
histSize = 10000;
|
|
loginShellInit = "cd /etc/nixos && clear && fastfetch";
|
|
ohMyZsh = {
|
|
enable = true;
|
|
theme = "robbyrussell";
|
|
};
|
|
shellInit = ''
|
|
beetn() {
|
|
echo "$*" | aichat -cer beets
|
|
}
|
|
'';
|
|
shellAliases = {
|
|
# shell
|
|
ff = "clear && fastfetch";
|
|
l = "ls -l";
|
|
lg = "lazygit";
|
|
st = "systemctl-tui";
|
|
gp = "git pull";
|
|
ns = "nh os switch";
|
|
gp-ns = "gp && ns";
|
|
|
|
# ssh
|
|
s-1 = "ssh sapphira-1";
|
|
s-1t = "ssh sapphira-1t";
|
|
o-0 = "ssh otreca-0";
|
|
o-0t = "ssh otreca-0t";
|
|
|
|
# Somethings
|
|
reboot-bios = "sudo systemctl reboot --firmware-setup";
|
|
|
|
# Extras
|
|
plasma-manager = "nix run github:nix-community/plasma-manager";
|
|
pip2nix = "nix run github:nix-community/pip2nix --"; # https://github.com/nix-community/pip2nix
|
|
pip2nix-g = "nix run github:nix-community/pip2nix -- generate -r";
|
|
json2nix = "nix run github:sempruijs/json2nix";
|
|
};
|
|
};
|
|
}
|