Define terminal environment
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./desktop-environment.nix
|
||||
./terminal-environment.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
@@ -57,39 +58,17 @@
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
git
|
||||
neovim
|
||||
python313Packages.pynvim
|
||||
networkmanager
|
||||
epiphany
|
||||
nodejs_24
|
||||
cmake
|
||||
hyfetch
|
||||
elan
|
||||
gnat15
|
||||
ghdl-llvm
|
||||
gtkwave
|
||||
gnumake
|
||||
alire
|
||||
rustup
|
||||
yosys
|
||||
openroad
|
||||
verilator
|
||||
iverilog
|
||||
cargo
|
||||
docker
|
||||
rustfmt
|
||||
wget
|
||||
networkmanager
|
||||
epiphany
|
||||
nodejs_24
|
||||
cmake
|
||||
docker
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
|
||||
59
terminal-environment.nix
Normal file
59
terminal-environment.nix
Normal file
@@ -0,0 +1,59 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
neovim
|
||||
python313Packages.pynvim
|
||||
git
|
||||
hyfetch
|
||||
];
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
extraConfig = ''
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
histSize = 4096;
|
||||
histFile = "$HOME/.zsh_history";
|
||||
setOptions = [
|
||||
"HIST_IGNORE_ALL_DUPS"
|
||||
"VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true"
|
||||
];
|
||||
|
||||
shellAliases = {
|
||||
ll = "ls -lh";
|
||||
nix-check = "nixos-rebuild build";
|
||||
nix-update = "sudo nixos-rebuild switch";
|
||||
sirc = "ssh -t nichkara.eu tmux new-session -A -s weechat weechat";
|
||||
};
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"z"
|
||||
"dotenv"
|
||||
"autoenv"
|
||||
"battery"
|
||||
"emoji"
|
||||
"emoji-clock"
|
||||
"fzf"
|
||||
"kitty"
|
||||
"sudo"
|
||||
"themes"
|
||||
"tmux"
|
||||
"vi-mode"
|
||||
];
|
||||
theme = "smt";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user