lsp on the workstation
This commit is contained in:
parent
02bc2398e3
commit
2f4fa4afd6
21
workstation/aliases.nix
Normal file
21
workstation/aliases.nix
Normal 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
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,6 +10,9 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./k8s.nix
|
./k8s.nix
|
||||||
./podman.nix
|
./podman.nix
|
||||||
|
./tty.nix
|
||||||
|
./aliases.nix
|
||||||
|
./zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
|
@ -118,7 +121,7 @@
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
foot kitty terminator zsh
|
foot kitty terminator
|
||||||
dbus
|
dbus
|
||||||
greetd.tuigreet
|
greetd.tuigreet
|
||||||
wayland
|
wayland
|
||||||
|
@ -128,8 +131,26 @@
|
||||||
neofetch glances inxi htop bottom
|
neofetch glances inxi htop bottom
|
||||||
wget curl
|
wget curl
|
||||||
git
|
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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
|
|
29
workstation/tty.nix
Normal file
29
workstation/tty.nix
Normal 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
15
workstation/zsh.nix
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue