lsp on the workstation

This commit is contained in:
Geir Okkenhaug Jerstad 2024-07-02 15:02:33 +02:00
parent 02bc2398e3
commit 2f4fa4afd6
4 changed files with 89 additions and 3 deletions

21
workstation/aliases.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
tldr
eza
bat
ripgrep
];
environment.shellAliases = {
vi = "nvim";
vim = "nvim";
h = "tldr";
# oxidized
ls = "eza -l";
cat = "bat";
grep = "rg";
top = "btm --color gruvbox";
# some tools
};
}

View file

@ -10,6 +10,9 @@
./hardware-configuration.nix
./k8s.nix
./podman.nix
./tty.nix
./aliases.nix
./zsh.nix
];
# Kernel
@ -118,7 +121,7 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
foot kitty terminator zsh
foot kitty terminator
dbus
greetd.tuigreet
wayland
@ -128,7 +131,25 @@
neofetch glances inxi htop bottom
wget curl
git
mc eza du-dust
mc eza du-dust ripgrep
nix-direnv
# Languages
zig
python3 python3Packages.pip
guile
go gotools golint
rustup
# language servers
zls
python3Packages.python-lsp-server
gopls
luajitPackages.lua-lsp
nodePackages.bash-language-server
vimPlugins.cmp-nvim-lsp
ccls
gdb
];
# Some programs need SUID wrappers, can be configured further or are

29
workstation/tty.nix Normal file
View file

@ -0,0 +1,29 @@
{ pkgs, ... }:
{
services.getty.greetingLine = ''\l'';
console = {
earlySetup = true;
# Joker palette
colors = [
"1b161f"
"ff5555"
"54c6b5"
"d5aa2a"
"bd93f9"
"ff79c6"
"8be9fd"
"bfbfbf"
"1b161f"
"ff6e67"
"5af78e"
"ffce50"
"caa9fa"
"ff92d0"
"9aedfe"
"e6e6e6"
];
};
}

15
workstation/zsh.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs;
[
zsh
zsh-completions
nix-zsh-completions
starship
direnv
];
programs.zsh.enable = true;
programs.zsh.syntaxHighlighting.enable = true;
programs.zsh.autosuggestions.enable = true;
}