mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 10:06:15 +01:00
last migration from old nix config
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
userName = "Michał Czyż";
|
||||
userName = "Michał Czyż";
|
||||
userEmail = "mike@c2yz.com";
|
||||
|
||||
extraConfig = {
|
||||
|
||||
7
home/programs/gpg.nix
Normal file
7
home/programs/gpg.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,12 @@
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "FiraCode Nerd Font";
|
||||
size = 12;
|
||||
};
|
||||
|
||||
themeFile = "Rose Pine";
|
||||
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
|
||||
17
home/programs/neovide.nix
Normal file
17
home/programs/neovide.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
neovide
|
||||
];
|
||||
|
||||
home.file = {
|
||||
".config/neovide/config.toml" = {
|
||||
text = ''
|
||||
vsync = true
|
||||
|
||||
[font]
|
||||
normal = ["FiraCode Nerd Font"]
|
||||
size = 14
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
15
home/programs/neovim.nix
Normal file
15
home/programs/neovim.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ inputs
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim;
|
||||
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
|
||||
defaultEditor = true;
|
||||
};
|
||||
}
|
||||
@@ -65,11 +65,9 @@
|
||||
platformio
|
||||
iwgtk
|
||||
imv
|
||||
neovide
|
||||
feh
|
||||
zed-editor
|
||||
zint
|
||||
tmux
|
||||
zip
|
||||
unzip
|
||||
pavucontrol
|
||||
@@ -77,9 +75,7 @@
|
||||
qalculate-gtk
|
||||
file-roller
|
||||
vim
|
||||
rofi
|
||||
nixfmt-rfc-style
|
||||
nemo
|
||||
neovim
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cli = import ../configs/aliases.nix;
|
||||
in
|
||||
{
|
||||
programs = {
|
||||
zoxide.enable = true;
|
||||
@@ -32,54 +38,42 @@
|
||||
bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
shellAliases = {
|
||||
fetch = "fastfetch";
|
||||
rebuild = "nh os switch";
|
||||
update = "nh os switch --update";
|
||||
garbage = "nh clean all && sudo bootctl cleanup ";
|
||||
|
||||
hxd = "hx ~/.files/";
|
||||
hxc = "hx ~/code/";
|
||||
|
||||
ls = "eza";
|
||||
la = "eza -a";
|
||||
ll = "eza -l";
|
||||
lr = "eza -R";
|
||||
tree = "eza -T";
|
||||
|
||||
".." = "cd ..";
|
||||
|
||||
grep = "grep --color=auto";
|
||||
|
||||
startupctl = "systemctl list-unit-files --type=service | grep enabled";
|
||||
};
|
||||
shellAliases = cli.myAliases;
|
||||
};
|
||||
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
history.size = 10000000;
|
||||
|
||||
shellAliases = {
|
||||
fetch = "fastfetch";
|
||||
rebuild = "nh os switch";
|
||||
update = "nh os switch --update";
|
||||
garbage = "nh clean all && sudo bootctl cleanup ";
|
||||
shellAliases = cli.myAliases;
|
||||
|
||||
hxd = "hx ~/.files/";
|
||||
hxc = "hx ~/code/";
|
||||
# plugins = [
|
||||
# {
|
||||
# name = "powerlevel10k";
|
||||
# src = pkgs.zsh-powerlevel10k;
|
||||
# file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
# }
|
||||
# ];
|
||||
|
||||
ls = "eza";
|
||||
la = "eza -a";
|
||||
ll = "eza -l";
|
||||
lr = "eza -R";
|
||||
tree = "eza -T";
|
||||
enableAutosuggestions = true;
|
||||
|
||||
".." = "cd ..";
|
||||
|
||||
grep = "grep --color=auto";
|
||||
|
||||
startupctl = "systemctl list-unit-files --type=service | grep enabled";
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
historySubstringSearch = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
# [[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
||||
eval "$(zoxide init --cmd cd zsh)"
|
||||
# if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then
|
||||
# exec tmux new-session -A -s $USER >/dev/null 2>&1
|
||||
# exec tmux new-session -t $USER >/dev/null 2>&1 | tmux new-session -A -s $USER >/dev/null 2>&1
|
||||
# fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
49
home/programs/tmux.nix
Normal file
49
home/programs/tmux.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
mouse = true;
|
||||
prefix = "C-Space";
|
||||
keyMode = "vi";
|
||||
terminal = "screen-256color";
|
||||
baseIndex = 1;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
sensible
|
||||
vim-tmux-navigator
|
||||
rose-pine
|
||||
yank
|
||||
];
|
||||
extraConfig = ''
|
||||
# history limit
|
||||
set -g history-limit 5000
|
||||
|
||||
# increase repeat time
|
||||
set -g repeat-time 1000
|
||||
|
||||
# decrese command delay
|
||||
set -sg escape-time 1
|
||||
|
||||
# faster key repetition
|
||||
set -s escape-time 0
|
||||
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# reload tmux while using tmux
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
|
||||
|
||||
# Shift Alt vim keys to switch windows
|
||||
bind -n M-H previous-window
|
||||
bind -n M-L next-window
|
||||
|
||||
# Vim like yank
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
|
||||
# Open panes in current directory
|
||||
bind '"' split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
||||
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user