97 lines
2.5 KiB
Nix
97 lines
2.5 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
# Terminal/Shell
|
|
kitty tmux
|
|
|
|
# Text Editor
|
|
((vim-full.override { }).customize{
|
|
name = "vim";
|
|
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
|
|
start = [
|
|
vim-nix # Essential syntax highlighting and indents for Nix files
|
|
rust-vim # Official Rust plugin for detection, syntax, and formatting
|
|
vim-lsp # Lightweight Language Server Protocol client for C/C++ and Rust autocomplete
|
|
vim-lsp-settings # Automatically configures LSPs (like clangd and rust-analyzer)
|
|
asyncomplete-vim # Required to give you popup auto-complete menus for vim-lsp
|
|
asyncomplete-lsp-vim
|
|
vim-lastplace # Reopens files at your last edit position
|
|
];
|
|
opt = [];
|
|
};
|
|
vimrcConfig.customRC = ''
|
|
" Basic Defaults
|
|
set nocompatible
|
|
set backspace=indent,eol,start
|
|
|
|
" Enable line numbers
|
|
set number
|
|
set relativenumber
|
|
|
|
" Indentation rules
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set expandtab
|
|
set autoindent
|
|
set smartindent
|
|
|
|
" Better searching
|
|
set hlsearch
|
|
set incsearch
|
|
set ignorecase
|
|
set smartcase
|
|
|
|
" Enable syntax highlighting and mouse support
|
|
syntax on
|
|
set mouse=a
|
|
|
|
" LSP Configuration (Tab to navigate completion menu)
|
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|
inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() . "\<cr>" : "\<cr>"
|
|
'';
|
|
})
|
|
|
|
|
|
# Building Tools
|
|
pkg-config meson
|
|
|
|
# Network/Web
|
|
wget curl iproute2 nmap thunderbird
|
|
|
|
# System Utilities
|
|
age sops btop fastfetch acpi gparted efibootmgr dunst
|
|
libnotify wlogout bzip2 gzip zip unzip gnugrep jq yq-go
|
|
cacert brightnessctl lsd p7zip asciinema asciinema-agg
|
|
|
|
# Sandboxing
|
|
bubblewrap
|
|
|
|
# Desktop/Hyprland
|
|
waybar hyprpaper wofi networkmanagerapplet
|
|
|
|
# Java
|
|
temurin-bin-25
|
|
|
|
# Programming Language/Tool
|
|
python3 nixfmt
|
|
|
|
# Virtualization
|
|
libvirt virt-manager qemu_kvm OVMF swtpm
|
|
];
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (pkg.pname) [
|
|
"vscode"
|
|
"steam"
|
|
"steam-unwrapped"
|
|
];
|
|
|
|
# --- Native Steam integration ---
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
};
|
|
}
|