started new config
This commit is contained in:
37
home/cmd_tools.nix
Normal file
37
home/cmd_tools.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
git = true;
|
||||
icons = "always";
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
tmux.enableShellIntegration = true;
|
||||
};
|
||||
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
tabs = "4";
|
||||
wrap = "character";
|
||||
italic-text = "never";
|
||||
theme = "ansi";
|
||||
};
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
options = [
|
||||
"--cmd cd"
|
||||
];
|
||||
};
|
||||
|
||||
programs.gitui = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
17
home/default.nix
Normal file
17
home/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
name = "bitbang";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./i3.nix
|
||||
./vim.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = name;
|
||||
homeDirectory = "/home/${name}";
|
||||
|
||||
stateVersion = "25.11";
|
||||
};
|
||||
}
|
||||
80
home/i3.nix
Normal file
80
home/i3.nix
Normal file
@@ -0,0 +1,80 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
modKey = "Mod1";
|
||||
UP = "k";
|
||||
DOWN = "j";
|
||||
LEFT = "h";
|
||||
RIGHT = "l";
|
||||
MENU = "rofi -show drun";
|
||||
TERM = "alacritty";
|
||||
EXIT = "i3-nagbar -t warning -m 'Exit i3?' -B 'Yes' 'i3-msg exit'";
|
||||
in
|
||||
{
|
||||
xsession.windowManager.i3 = {
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = modKey;
|
||||
menu = MENU;
|
||||
terminal = TERM;
|
||||
workspaceLayout = "tabbed";
|
||||
modes = {
|
||||
resize = {
|
||||
"${UP}" = "resize shrink height 10 px or 10 ppt";
|
||||
"${DOWN}" = "resize grow height 10 px or 10 ppt";
|
||||
"${LEFT}" = "resize shrink width 10 px or 10 ppt";
|
||||
"${RIGHT}" = "resize grow width 10 px or 10 ppt";
|
||||
Escape = "mode default";
|
||||
};
|
||||
};
|
||||
keybindings = {
|
||||
"${modKey}+Return" = "exec ${TERM}";
|
||||
"${modKey}+d" = "exec ${MENU}";
|
||||
"${modKey}+Shift+q" = "kill";
|
||||
"${modKey}+${LEFT}" = "focus left";
|
||||
"${modKey}+${RIGHT}" = "focus right";
|
||||
"${modKey}+${UP}" = "focus up";
|
||||
"${modKey}+${DOWN}" = "focus down";
|
||||
"${modKey}+Shift+${LEFT}" = "move left";
|
||||
"${modKey}+Shift+${RIGHT}" = "move right";
|
||||
"${modKey}+Shift+${UP}" = "move up";
|
||||
"${modKey}+Shift+${DOWN}" = "move down";
|
||||
"${modKey}+y" = "split h";
|
||||
"${modKey}+t" = "split v";
|
||||
"${modKey}+f" = "fullscreen toggle";
|
||||
"${modKey}+s" = "layout stacking";
|
||||
"${modKey}+w" = "layout tabbed";
|
||||
"${modKey}+e" = "layout split";
|
||||
"${modKey}+Shift+space" = "floating toggle";
|
||||
"${modKey}+space" = "focus mode_toggle";
|
||||
"${modKey}+Shift+minus" = "move scratchpad";
|
||||
"${modKey}+n" = "workspace next";
|
||||
"${modKey}+p" = "workspace prev";
|
||||
"${modKey}+Shift+c" = "reload";
|
||||
"${modKey}+Shift+r" = "restart";
|
||||
"${modKey}+Shift+e" = "exec ${EXIT}";
|
||||
"${modKey}+r" = "mode resize";
|
||||
"${modKey}+1" = ''workspace number "1"'';
|
||||
"${modKey}+2" = ''workspace number "2"'';
|
||||
"${modKey}+3" = ''workspace number "3"'';
|
||||
"${modKey}+4" = ''workspace number "4"'';
|
||||
"${modKey}+5" = ''workspace number "5"'';
|
||||
"${modKey}+6" = ''workspace number "6"'';
|
||||
"${modKey}+7" = ''workspace number "7"'';
|
||||
"${modKey}+8" = ''workspace number "8"'';
|
||||
"${modKey}+9" = ''workspace number "9"'';
|
||||
"${modKey}+0" = ''workspace number "10"'';
|
||||
"${modKey}+Shift+1" = ''move container to workspace number "1"'';
|
||||
"${modKey}+Shift+2" = ''move container to workspace number "2"'';
|
||||
"${modKey}+Shift+3" = ''move container to workspace number "3"'';
|
||||
"${modKey}+Shift+4" = ''move container to workspace number "4"'';
|
||||
"${modKey}+Shift+5" = ''move container to workspace number "5"'';
|
||||
"${modKey}+Shift+6" = ''move container to workspace number "6"'';
|
||||
"${modKey}+Shift+7" = ''move container to workspace number "7"'';
|
||||
"${modKey}+Shift+8" = ''move container to workspace number "8"'';
|
||||
"${modKey}+Shift+9" = ''move container to workspace number "9"'';
|
||||
"${modKey}+Shift+0" = ''move container to workspace number "10"'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
9
home/media.nix
Normal file
9
home/media.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
mpv
|
||||
vlc
|
||||
ffmpeg
|
||||
kdenlive
|
||||
];
|
||||
}
|
||||
14
home/tmux.nix
Normal file
14
home/tmux.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
keyMode = "vi";
|
||||
newSession = true;
|
||||
historyLimit = 10000;
|
||||
baseIndex = 1;
|
||||
disableConfirmationPrompt = false;
|
||||
customPaneNavigationAndResize = true;
|
||||
terminal = "tmux-direct";
|
||||
};
|
||||
}
|
||||
25
home/vim.nix
Normal file
25
home/vim.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
programs.vim.enable = true;
|
||||
|
||||
programs.vim.settings = {
|
||||
expandtab = true;
|
||||
shiftwidth = 4;
|
||||
tabstop = 4;
|
||||
history = 128;
|
||||
ignorecase = true;
|
||||
smartcase = true;
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
};
|
||||
|
||||
programs.vim.extraConfig = ''
|
||||
set encoding=utf-8
|
||||
set fileencodings=utf-8,euc-jp,sjis
|
||||
set autoindent
|
||||
set smartindent
|
||||
set wrap
|
||||
set incsearch
|
||||
syntax enable
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user