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:
54
home/configs/aliases.nix
Normal file
54
home/configs/aliases.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
myAliases = {
|
||||
".." = "cd ..";
|
||||
"cd.." = "cd ..";
|
||||
|
||||
ls = "command eza";
|
||||
grep = "grep --color=auto";
|
||||
fgrep = "fgrep --color=auto";
|
||||
egrep = "egrep --color=auto";
|
||||
|
||||
l = "eza -G --icons";
|
||||
ll = "eza -l --icons";
|
||||
lg = "eza -lG";
|
||||
lall = "eza -lahF --icons --git";
|
||||
lalg = "eza -laGhF --icons --git";
|
||||
latree = "eza -laGghHT --git --icons";
|
||||
la = "eza --git --icons -la";
|
||||
lsd = "eza -laD";
|
||||
|
||||
cls = "clear";
|
||||
userlist = "cut -d: -f1 /etc/passwd";
|
||||
free = "free -mt";
|
||||
du = "du -ach | sort -h";
|
||||
ps = "ps auxf";
|
||||
|
||||
sudo = "sudo ";
|
||||
reload = "exec $SHELL -l";
|
||||
|
||||
hibernate = "systemctl hibernate";
|
||||
|
||||
mkdir = "mkdir -pv";
|
||||
psmem = "ps -e -orss=,args= | sort -b -k1 -nr";
|
||||
psmem10 = "ps -e -orss=,args= | sort -b -k1 -nr | head -10";
|
||||
pscpu = "ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr";
|
||||
pscpu10 = "ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10";
|
||||
|
||||
xclip = "xclip -selection c";
|
||||
|
||||
gua = "git remote | xargs -L1 git push --all";
|
||||
|
||||
fetch = "fastfetch";
|
||||
rebuild = "nh os switch";
|
||||
update = "nh os switch --update";
|
||||
garbage = "nh clean all && sudo bootctl cleanup ";
|
||||
|
||||
hxd = "hx ~/.files/";
|
||||
hxc = "hx ~/code/";
|
||||
|
||||
lr = "eza -R";
|
||||
tree = "eza -T";
|
||||
|
||||
startupctl = "systemctl list-unit-files --type=service | grep enabled";
|
||||
};
|
||||
}
|
||||
1712
home/configs/p10k.zsh
Normal file
1712
home/configs/p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
135
home/configs/rose-pine.rasi
Normal file
135
home/configs/rose-pine.rasi
Normal file
@@ -0,0 +1,135 @@
|
||||
@import "default"
|
||||
|
||||
* {
|
||||
bg: #191724;
|
||||
cur: #1f1d2e;
|
||||
fgd: #e0def4;
|
||||
cmt: #6e6a86;
|
||||
cya: #9ccfd8;
|
||||
grn: #31748f;
|
||||
ora: #ebbcba;
|
||||
pur: #c4a7e7;
|
||||
red: #eb6f92;
|
||||
yel: #f6c177;
|
||||
|
||||
font: "Cartograph CF 12";
|
||||
|
||||
foreground: @fgd;
|
||||
background: @bg;
|
||||
active-background: @grn;
|
||||
urgent-background: @red;
|
||||
|
||||
selected-background: @active-background;
|
||||
selected-urgent-background: @urgent-background;
|
||||
selected-active-background: @active-background;
|
||||
separatorcolor: @active-background;
|
||||
bordercolor: @ora;
|
||||
}
|
||||
|
||||
#window {
|
||||
background-color: @background;
|
||||
border: 3;
|
||||
border-radius: 6;
|
||||
border-color: @bordercolor;
|
||||
padding: 5;
|
||||
}
|
||||
#mainbox {
|
||||
border: 0;
|
||||
padding: 5;
|
||||
}
|
||||
#message {
|
||||
border: 1px dash 0px 0px ;
|
||||
border-color: @separatorcolor;
|
||||
padding: 1px ;
|
||||
}
|
||||
#textbox {
|
||||
text-color: @foreground;
|
||||
}
|
||||
#listview {
|
||||
fixed-height: 0;
|
||||
border: 2px dash 0px 0px ;
|
||||
border-color: @bordercolor;
|
||||
spacing: 2px ;
|
||||
scrollbar: false;
|
||||
padding: 2px 0px 0px ;
|
||||
}
|
||||
#element {
|
||||
border: 0;
|
||||
padding: 1px ;
|
||||
}
|
||||
#element.normal.normal {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#element.normal.urgent {
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
}
|
||||
#element.normal.active {
|
||||
background-color: @active-background;
|
||||
text-color: @background;
|
||||
}
|
||||
#element.selected.normal {
|
||||
background-color: @selected-background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#element.selected.urgent {
|
||||
background-color: @selected-urgent-background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#element.selected.active {
|
||||
background-color: @selected-active-background;
|
||||
text-color: @background;
|
||||
}
|
||||
#element.alternate.normal {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#element.alternate.urgent {
|
||||
background-color: @urgent-background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#element.alternate.active {
|
||||
background-color: @active-background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#scrollbar {
|
||||
width: 2px ;
|
||||
border: 0;
|
||||
handle-width: 8px ;
|
||||
padding: 0;
|
||||
}
|
||||
#sidebar {
|
||||
border: 2px dash 0px 0px ;
|
||||
border-color: @separatorcolor;
|
||||
}
|
||||
#button.selected {
|
||||
background-color: @selected-background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#inputbar {
|
||||
spacing: 0;
|
||||
text-color: @foreground;
|
||||
padding: 1px ;
|
||||
}
|
||||
#case-indicator {
|
||||
spacing: 0;
|
||||
text-color: @foreground;
|
||||
}
|
||||
#entry {
|
||||
spacing: 0;
|
||||
text-color: @cya;
|
||||
}
|
||||
#prompt {
|
||||
spacing: 0;
|
||||
text-color: @grn;
|
||||
}
|
||||
#inputbar {
|
||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||
}
|
||||
#textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
margin: 0px 0.3em 0em 0em;
|
||||
text-color: @grn;
|
||||
}
|
||||
@@ -7,16 +7,21 @@
|
||||
./programs/fastfetch.nix
|
||||
# ./programs/foot.nix
|
||||
./programs/git.nix
|
||||
# ./programs/helix.nix
|
||||
./programs/gpg.nix
|
||||
./programs/helix.nix
|
||||
./programs/kitty.nix
|
||||
./programs/neovide.nix
|
||||
./programs/neovim.nix
|
||||
./programs/packages.nix
|
||||
./programs/shell.nix
|
||||
./programs/tmux.nix
|
||||
./programs/vscodium.nix
|
||||
# ./programs/yazi.nix
|
||||
# ./programs/zathura.nix
|
||||
|
||||
./system/dunst.nix
|
||||
./system/hyprland.nix
|
||||
./system/rofi.nix
|
||||
./system/stylix.nix
|
||||
./system/waybar.nix
|
||||
./system/wlsunset.nix
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -296,6 +296,7 @@
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
# exec-once=zsh $HOME/.config/hypr/autostart.sh
|
||||
exec-once = waybar
|
||||
exec-once = keepassxc
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
@@ -403,6 +404,7 @@
|
||||
|
||||
cursor {
|
||||
no_hardware_cursors = true
|
||||
inactive_timeout = 5
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
|
||||
8
home/system/rofi.nix
Normal file
8
home/system/rofi.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ lib, pkgs, ... }: {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
location = "center";
|
||||
theme = lib.mkForce ../configs/rose-pine.rasi;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user