Define terminal environment

This commit is contained in:
2026-02-11 10:18:15 +01:00
parent 8b95709849
commit f20d885f77
2 changed files with 68 additions and 30 deletions

View File

@@ -9,6 +9,7 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./desktop-environment.nix
./terminal-environment.nix
];
# Bootloader.
@@ -60,36 +61,14 @@
# 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
];
programs.zsh = {
enable = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;

59
terminal-environment.nix Normal file
View 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";
};
};
}