feat(nvim): add init.lua

This commit is contained in:
Mohammad Rafiq 2025-03-05 06:59:49 +08:00
parent 443488782f
commit 464060a355
10 changed files with 15 additions and 8 deletions

View file

@ -1,6 +0,0 @@
{pkgs, ...}: {
home.sessionVariables.EDITOR = "nvim";
home.packages = with pkgs; [
neovim
];
}

View file

@ -1,15 +0,0 @@
{
home.sessionVariables.GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
programs.git = {
enable = true;
userName = "Mohammad Rafiq";
userEmail = "mohammadrafiq567@gmail.com";
extraConfig = {
init.defaultBranch = "prime";
push.autoSetupRemote = true;
pull.rebase = false;
core.editor = "nvim";
};
};
}

View file

@ -1,60 +0,0 @@
{pkgs, ...}: {
programs = {
bash = {
enable = true;
shellAliases = {
rebuild = "sudo nixos-rebuild switch --flake";
gs = "git status";
ai = "aichat -r %shell% -e";
};
};
# direnv lets us declare a .envrc in each project directory
# and updates the shell with the packages specified.
direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
};
# starship is a customisable prompt for any shell
starship = {
enable = true;
enableBashIntegration = true;
settings = {
};
};
# Terminal Multiplexing
tmux = {
enable = true;
plugins = with pkgs.tmuxPlugins; [
catppuccin
# Keybind Hints
tmux-which-key
# Status Line Decoration
tmux-powerline
# Session Management between Reboots
{
plugin = resurrect;
extraConfig = ''
set -g @resurrect-strategy-nvim 'session'
'';
}
{
plugin = continuum;
extraConfig = ''
set -g @continuum-restore 'on'
'';
}
];
extraConfig = ''
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
'';
};
};
}

View file

@ -1,7 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
kitty # default terminal emulator for hyprland
];
}

View file

@ -1,31 +0,0 @@
{pkgs, ...}: {
# TODO: Move wayland-specific stuff to a wayland config
home.packages = with pkgs; [
fastfetch # system info
wl-clipboard # provides cli copy and paste commands
aichat # duh
];
programs = {
# man page summaries (activate with tldr <command>)
tealdeer = {
enable = true;
enableAutoUpdates = true;
};
fzf = {
enable = true;
enableBashIntegration = true;
tmux.enableShellIntegration = true;
};
yazi = {
enable = true;
enableBashIntegration = true;
};
};
services = {
# clipboard history (depends on wl-clipboard)
cliphist.enable = true;
};
}

View file

@ -1,27 +0,0 @@
{
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = false; # Required for UWSM compat
systemd.variables = ["--all"];
# Use tha packages defined in the system configuration
package = null;
portalPackage = null;
settings = {
monitor = [
"HDMI-A-2, 3840x2160@60, 0x0, 2"
"DP-4, 1920x1080@60, -1920x0, 1"
", preferred, auto, 1"
];
"$terminal" = "kitty";
"$browser" = "firefox";
"$mainMod" = "SUPER";
bind = [
"$mainMod, Q, exec, uwsm app -- $terminal"
"$mainMod, W, killactive"
"$mainMod, E, exec, uwsm app -- $browser"
"$mainMod, M, exec, uwsm stop"
];
debug.disable_logs = false;
};
};
}