initial nixos config
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.username = "odweta";
|
||||
home.homeDirectory = "/home/odweta";
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.kitty;
|
||||
|
||||
font = {
|
||||
name = "Hurmit Nerd Font Mono";
|
||||
size = 16.0;
|
||||
};
|
||||
|
||||
settings = {
|
||||
# Performance / rendering
|
||||
enable_audio_bell = "no";
|
||||
repaint_delay = 10;
|
||||
input_delay = 1;
|
||||
sync_to_monitor = "yes";
|
||||
|
||||
# Wayland
|
||||
wayland_enable_ime = "yes";
|
||||
linux_display_server = "wayland";
|
||||
|
||||
# Clipboard
|
||||
clipboard_control = "write-clipboard write-primary read-clipboard";
|
||||
|
||||
# Cursor
|
||||
cursor_shape = "block";
|
||||
cursor_blink_interval = 0;
|
||||
|
||||
# Scrollback
|
||||
scrollback_lines = 10000;
|
||||
|
||||
# Window
|
||||
remember_window_size = "yes";
|
||||
initial_window_width = "100c";
|
||||
initial_window_height = "30c";
|
||||
confirm_os_window_close = 0;
|
||||
|
||||
# Tabs
|
||||
tab_bar_style = "powerline";
|
||||
tab_powerline_style = "slanted";
|
||||
active_tab_font_style = "bold";
|
||||
inactive_tab_font_style = "normal";
|
||||
|
||||
# Shell
|
||||
shell = "${pkgs.bash}/bin/bash";
|
||||
|
||||
# Colors (example dark)
|
||||
background = "#0f111a";
|
||||
foreground = "#c0caf5";
|
||||
selection_background = "#33467c";
|
||||
selection_foreground = "#ffffff";
|
||||
};
|
||||
|
||||
keybindings = {
|
||||
"ctrl+shift+enter" = "new_window";
|
||||
"ctrl+shift+t" = "new_tab";
|
||||
"ctrl+shift+w" = "close_tab";
|
||||
"ctrl+shift+right" = "next_tab";
|
||||
"ctrl+shift+left" = "previous_tab";
|
||||
"ctrl+shift+up" = "increase_font_size";
|
||||
"ctrl+shift+down" = "decrease_font_size";
|
||||
"ctrl+shift+c" = "copy_to_clipboard";
|
||||
"ctrl+shift+v" = "paste_from_clipboard";
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
# Disable ligatures selectively (example)
|
||||
disable_ligatures never
|
||||
|
||||
# URL hints
|
||||
map ctrl+shift+u kitten hints
|
||||
|
||||
# Truecolor fix
|
||||
term xterm-kitty
|
||||
'';
|
||||
};
|
||||
|
||||
programs.vim = {
|
||||
enable = true;
|
||||
plugins = with pkgs.vimPlugins; [ vim-airline ];
|
||||
settings = { ignorecase = true; };
|
||||
extraConfig = ''
|
||||
set sw=2
|
||||
set ts=2
|
||||
set et
|
||||
set smartindent
|
||||
set number
|
||||
syntax on
|
||||
'';
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = "Odweta";
|
||||
email = "code.62rdl@aleeas.com";
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme.name = "adw-gtk3";
|
||||
cursorTheme.name = "Bibata-Modern-Ice";
|
||||
iconTheme.name = "GruvboxPlus";
|
||||
};
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/plain" = [ "neovide.desktop" ];
|
||||
"applications/pdf" = [ "zathura.desktop" ];
|
||||
"image/*" = [ "sxiv.desktop" ];
|
||||
"video/png" = [ "mpv.desktop" ];
|
||||
"video/jpg" = [ "mpv.desktop" ];
|
||||
"video/*" = [ "mpv.desktop" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user