2024-07-11 03:56:19 -07:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
home.username = "youwen";
|
|
|
|
home.homeDirectory = "/home/youwen";
|
|
|
|
|
|
|
|
# link the configuration file in current directory to the specified location in home directory
|
|
|
|
# home.file.".config/i3/wallpaper.jpg".source = ./wallpaper.jpg;
|
|
|
|
|
|
|
|
# link all files in `./scripts` to `~/.config/i3/scripts`
|
|
|
|
# home.file.".config/i3/scripts" = {
|
|
|
|
# source = ./scripts;
|
|
|
|
# recursive = true; # link recursively
|
|
|
|
# executable = true; # make all files executable
|
|
|
|
# };
|
|
|
|
|
|
|
|
# encode the file content in nix configuration file directly
|
|
|
|
# home.file.".xxx".text = ''
|
|
|
|
# xxx
|
|
|
|
# '';
|
|
|
|
|
|
|
|
# Packages that should be installed to the user profile.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
neofetch
|
|
|
|
|
|
|
|
# archives
|
|
|
|
zip
|
|
|
|
xz
|
|
|
|
unzip
|
|
|
|
p7zip
|
|
|
|
|
|
|
|
# utils
|
|
|
|
ripgrep # recursively searches directories for a regex pattern
|
|
|
|
fzf # A command-line fuzzy finder
|
2024-07-30 04:36:35 -07:00
|
|
|
bat # replacement for cat
|
|
|
|
delta # git pager
|
|
|
|
lazygit # git TUI
|
2024-07-11 03:56:19 -07:00
|
|
|
|
|
|
|
# nix related
|
|
|
|
#
|
|
|
|
# it provides the command `nom` works just like `nix`
|
|
|
|
# with more details log output
|
|
|
|
nix-output-monitor
|
|
|
|
|
|
|
|
|
|
|
|
# system tools
|
|
|
|
pciutils # lspci
|
|
|
|
usbutils # lsusb
|
2024-07-30 04:36:35 -07:00
|
|
|
btop # replacement of htop/nmon
|
|
|
|
fd # replacement for find
|
|
|
|
|
|
|
|
# desktop utils
|
2024-07-11 21:45:18 -07:00
|
|
|
wl-clipboard
|
|
|
|
rofi-wayland
|
2024-07-11 22:06:02 -07:00
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
swappy
|
2024-07-30 04:36:35 -07:00
|
|
|
pavucontrol
|
|
|
|
swww
|
|
|
|
waypaper
|
2024-07-11 03:56:19 -07:00
|
|
|
|
2024-07-30 04:36:35 -07:00
|
|
|
# desktop apps
|
|
|
|
dolphin
|
|
|
|
bitwarden-desktop
|
|
|
|
thunderbird
|
|
|
|
spotify
|
2024-07-11 03:56:19 -07:00
|
|
|
vesktop
|
|
|
|
signal-desktop
|
|
|
|
|
2024-07-30 04:36:35 -07:00
|
|
|
# dev tools
|
2024-07-11 03:56:19 -07:00
|
|
|
nodePackages_latest.pnpm
|
|
|
|
rustfmt
|
|
|
|
rust-analyzer
|
|
|
|
|
2024-07-30 04:36:35 -07:00
|
|
|
# desktop ricing
|
2024-07-11 16:57:24 -07:00
|
|
|
bibata-cursors
|
2024-07-11 20:01:04 -07:00
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
|
|
|
libsForQt5.qt5ct
|
2024-07-11 21:56:03 -07:00
|
|
|
papirus-icon-theme
|
|
|
|
libsForQt5.qt5ct
|
2024-07-11 03:56:19 -07:00
|
|
|
|
|
|
|
];
|
|
|
|
|
2024-07-11 17:25:22 -07:00
|
|
|
services.dunst = {
|
|
|
|
enable = true;
|
|
|
|
catppuccin.enable = true;
|
2024-07-11 23:26:19 -07:00
|
|
|
iconTheme = {
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
package = pkgs.papirus-icon-theme;
|
|
|
|
size = "32x32";
|
|
|
|
};
|
2024-07-11 17:25:22 -07:00
|
|
|
};
|
|
|
|
|
2024-07-21 19:02:10 -07:00
|
|
|
services.easyeffects = { enable = true; };
|
2024-07-12 00:27:08 -07:00
|
|
|
|
2024-07-11 17:25:22 -07:00
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
catppuccin.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-07-21 19:02:10 -07:00
|
|
|
programs.wlogout = { enable = true; };
|
2024-07-12 00:32:37 -07:00
|
|
|
|
2024-07-11 03:56:19 -07:00
|
|
|
wayland.windowManager.hyprland.enable = true;
|
|
|
|
wayland.windowManager.hyprland.settings = {
|
2024-07-21 19:02:10 -07:00
|
|
|
exec-once = [ "waybar" "waypaper --restore" ];
|
2024-07-11 03:56:19 -07:00
|
|
|
"$mod" = "SUPER";
|
|
|
|
"$Left" = "Y";
|
|
|
|
"$Right" = "O";
|
|
|
|
"$Up" = "I";
|
|
|
|
"$Down" = "U";
|
2024-07-11 20:01:04 -07:00
|
|
|
env = [
|
2024-07-21 19:02:10 -07:00
|
|
|
"HYPRCURSOR_THEME,Bibata-Modern-Ice"
|
|
|
|
"HYPRCURSOR_SIZE,26"
|
|
|
|
"XCURSOR_THEME,Bibata-Modern-Ice"
|
|
|
|
"XCURSOR_SIZE,26"
|
|
|
|
];
|
|
|
|
bind = [
|
|
|
|
# Application Keybinds
|
|
|
|
"$mod, F, exec, librewolf"
|
|
|
|
"$mod, T, exec, kitty"
|
|
|
|
"$mod, E, exec, dolphin"
|
|
|
|
"$mod, R, exec, pavucontrol"
|
|
|
|
|
|
|
|
# Window actions
|
|
|
|
"$mod, Q, killactive"
|
|
|
|
"$mod, W, togglefloating"
|
|
|
|
"$mod, J, togglesplit"
|
|
|
|
"$mod, Return, fullscreen"
|
|
|
|
|
|
|
|
# Move around
|
|
|
|
"$mod, $Left, movefocus, l"
|
|
|
|
"$mod, $Right, movefocus, r"
|
|
|
|
"$mod, $Up, movefocus, u"
|
|
|
|
"$mod, $Down, movefocus, d"
|
|
|
|
|
|
|
|
"$mod, 1, workspace, 1"
|
|
|
|
"$mod, 2, workspace, 2"
|
|
|
|
"$mod, 3, workspace, 3"
|
|
|
|
"$mod, 4, workspace, 4"
|
|
|
|
"$mod, 5, workspace, 5"
|
|
|
|
"$mod, 6, workspace, 6"
|
|
|
|
"$mod, 7, workspace, 7"
|
|
|
|
"$mod, 8, workspace, 8"
|
|
|
|
"$mod, 9, workspace, 9"
|
|
|
|
"$mod, 0, workspace, 10"
|
|
|
|
|
|
|
|
"$mod, S, togglespecialworkspace"
|
|
|
|
|
|
|
|
# Move windows around
|
|
|
|
"$mod+Shift+Ctrl, $Left, movewindow, l"
|
|
|
|
"$mod+Shift+Ctrl, $Right, movewindow, r"
|
|
|
|
"$mod+Shift+Ctrl, $Up, movewindow, u"
|
|
|
|
"$mod+Shift+Ctrl, $Down, movewindow, d"
|
|
|
|
|
|
|
|
"$mod+Ctrl+Alt, $Right, movetoworkspace, r+1"
|
|
|
|
"$mod+Ctrl+Alt, $Left, movetoworkspace, r-1"
|
|
|
|
|
|
|
|
"$mod+Ctrl, $Right, workspace, r+1"
|
|
|
|
"$mod+Ctrl, $Left, workspace, r-1"
|
|
|
|
|
|
|
|
"$mod+Alt, S, movetoworkspacesilent, special"
|
|
|
|
|
|
|
|
# Utilities
|
|
|
|
"$mod, Space, exec, pkill -x rofi || rofi -show drun" # Run rofi
|
|
|
|
|
|
|
|
''$mod, P, exec, grim -g "$(slurp)" - | swappy -f -'' # Screenshot
|
|
|
|
|
|
|
|
"$mod, Backspace, exec, wlogout" # Screenshot
|
2024-07-11 20:01:04 -07:00
|
|
|
];
|
2024-07-11 03:56:19 -07:00
|
|
|
bindm = [
|
|
|
|
"$mod, mouse:272, movewindow"
|
|
|
|
"$mod, mouse:273, resizewindow"
|
|
|
|
"$mod, Z, movewindow"
|
|
|
|
"$mod, X, resizewindow"
|
|
|
|
];
|
|
|
|
windowrulev2 = [
|
|
|
|
"opacity 0.90 0.90,class:^(librewolf)$"
|
|
|
|
"opacity 0.90 0.90,class:^(Brave-browser)$"
|
|
|
|
"opacity 0.80 0.80,class:^(Steam)$"
|
|
|
|
"opacity 0.80 0.80,class:^(steam)$"
|
|
|
|
"opacity 0.80 0.80,class:^(steamwebhelper)$"
|
|
|
|
"opacity 0.80 0.80,class:^(Spotify)$"
|
|
|
|
"opacity 0.80 0.80,initialTitle:^(Spotify Free)$"
|
|
|
|
"opacity 0.80 0.80,class:^(code-oss)$"
|
|
|
|
"opacity 0.80 0.80,class:^(Code)$"
|
|
|
|
"opacity 0.80 0.80,class:^(code-url-handler)$"
|
|
|
|
"opacity 0.80 0.80,class:^(code-insiders-url-handler)$"
|
|
|
|
"opacity 0.80 0.80,class:^(kitty)$"
|
|
|
|
"opacity 0.80 0.80,class:^(org.kde.dolphin)$"
|
|
|
|
"opacity 0.80 0.80,class:^(org.kde.ark)$"
|
|
|
|
"opacity 0.80 0.80,class:^(nwg-look)$"
|
|
|
|
"opacity 0.80 0.80,class:^(qt5ct)$"
|
|
|
|
"opacity 0.80 0.80,class:^(qt6ct)$"
|
|
|
|
"opacity 0.80 0.80,class:^(kvantummanager)$"
|
|
|
|
|
|
|
|
"opacity 0.90 0.90,class:^(com.github.rafostar.Clapper)$ # Clapper-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(com.github.tchx84.Flatseal)$ # Flatseal-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(hu.kramo.Cartridges)$ # Cartridges-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(com.obsproject.Studio)$ # Obs-Qt"
|
|
|
|
"opacity 0.80 0.80,class:^(gnome-boxes)$ # Boxes-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(discord)$ # Discord-Electron"
|
2024-07-11 20:14:52 -07:00
|
|
|
"opacity 0.80 0.80,class:^(vesktop)$ # Vesktop-Electron"
|
2024-07-11 03:56:19 -07:00
|
|
|
"opacity 0.80 0.80,class:^(ArmCord)$ # ArmCord-Electron"
|
|
|
|
"opacity 0.80 0.80,class:^(app.drey.Warp)$ # Warp-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(net.davidotek.pupgui2)$ # ProtonUp-Qt"
|
|
|
|
"opacity 0.80 0.80,class:^(yad)$ # Protontricks-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(Signal)$ # Signal-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(io.github.alainm23.planify)$ # planify-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(io.gitlab.theevilskeleton.Upscaler)$ # Upscaler-Gtk"
|
|
|
|
"opacity 0.80 0.80,class:^(com.github.unrud.VideoDownloader)$ # VideoDownloader-Gtk"
|
|
|
|
|
|
|
|
"opacity 0.80 0.70,class:^(pavucontrol)$"
|
|
|
|
"opacity 0.80 0.70,class:^(blueman-manager)$"
|
|
|
|
"opacity 0.80 0.70,class:^(nm-applet)$"
|
|
|
|
"opacity 0.80 0.70,class:^(nm-connection-editor)$"
|
|
|
|
"opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$"
|
|
|
|
|
|
|
|
"float,class:^(org.kde.dolphin)$,title:^(Progress Dialog — Dolphin)$"
|
|
|
|
"float,class:^(org.kde.dolphin)$,title:^(Copying — Dolphin)$"
|
|
|
|
"float,title:^(Picture-in-Picture)$"
|
2024-07-11 11:37:27 -07:00
|
|
|
"float,class:^(librewolf)$,title:^(Library)$"
|
2024-07-11 03:56:19 -07:00
|
|
|
"float,class:^(vlc)$"
|
|
|
|
"float,class:^(kvantummanager)$"
|
|
|
|
"float,class:^(qt5ct)$"
|
|
|
|
"float,class:^(qt6ct)$"
|
|
|
|
"float,class:^(nwg-look)$"
|
|
|
|
"float,class:^(org.kde.ark)$"
|
|
|
|
"float,class:^(com.github.rafostar.Clapper)$ # Clapper-Gtk"
|
|
|
|
"float,class:^(app.drey.Warp)$ # Warp-Gtk"
|
|
|
|
"float,class:^(net.davidotek.pupgui2)$ # ProtonUp-Qt"
|
|
|
|
"float,class:^(yad)$ # Protontricks-Gtk"
|
|
|
|
"float,class:^(eog)$ # Imageviewer-Gtk"
|
|
|
|
"float,class:^(io.github.alainm23.planify)$ # planify-Gtk"
|
|
|
|
"float,class:^(io.gitlab.theevilskeleton.Upscaler)$ # Upscaler-Gtk"
|
|
|
|
"float,class:^(com.github.unrud.VideoDownloader)$ # VideoDownloader-Gkk"
|
|
|
|
"float,class:^(pavucontrol)$"
|
|
|
|
"float,class:^(blueman-manager)$"
|
|
|
|
"float,class:^(nm-applet)$"
|
|
|
|
"float,class:^(nm-connection-editor)$"
|
|
|
|
"float,class:^(org.kde.polkit-kde-authentication-agent-1)$"
|
|
|
|
"opacity 0.80 0.80,class:^(org.freedesktop.impl.portal.desktop.gtk)$"
|
|
|
|
"opacity 0.80 0.80,class:^(org.freedesktop.impl.portal.desktop.hyprland)$"
|
|
|
|
];
|
|
|
|
layerrule = [
|
|
|
|
"blur,rofi"
|
|
|
|
"ignorezero,rofi"
|
|
|
|
"blur,notifications"
|
|
|
|
"ignorezero,notifications"
|
|
|
|
"blur,swaync-notification-window"
|
|
|
|
"ignorezero,swaync-notification-window"
|
|
|
|
"blur,swaync-control-center"
|
|
|
|
"ignorezero,swaync-control-center"
|
|
|
|
"blur,logout_dialog"
|
|
|
|
];
|
2024-07-21 19:02:10 -07:00
|
|
|
monitor =
|
|
|
|
[ "DP-1,2560x1440@165,1920x0,auto" "HDMI-A-1,1920x1080@60,0x0,1" ];
|
2024-07-11 03:56:19 -07:00
|
|
|
dwindle = {
|
|
|
|
pseudotile = "yes";
|
|
|
|
preserve_split = "yes";
|
|
|
|
};
|
|
|
|
animations = {
|
|
|
|
enabled = "yes";
|
|
|
|
bezier = [
|
|
|
|
"wind, 0.05, 0.9, 0.1, 1.05"
|
|
|
|
"winIn, 0.1, 1.1, 0.1, 1.1"
|
|
|
|
"winOut, 0.3, -0.3, 0, 1"
|
|
|
|
"liner, 1, 1, 1, 1"
|
|
|
|
];
|
|
|
|
animation = [
|
|
|
|
"windows, 1, 6, wind, slide"
|
|
|
|
"windowsIn, 1, 6, winIn, slide"
|
|
|
|
"windowsOut, 1, 5, winOut, slide"
|
|
|
|
"windowsMove, 1, 5, wind, slide"
|
|
|
|
"border, 1, 1, liner"
|
|
|
|
"borderangle, 1, 30, liner, loop"
|
|
|
|
"fade, 1, 10, default"
|
|
|
|
"workspaces, 1, 5, wind"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
general = {
|
|
|
|
gaps_in = "3";
|
|
|
|
gaps_out = "8";
|
|
|
|
border_size = "2";
|
|
|
|
#
|
|
|
|
# the dot is a hyprland name, not nix syntax, so we escape it
|
|
|
|
"col.active_border" = "rgba(ca9ee6ff) rgba(f2d5cfff) 45deg";
|
|
|
|
"col.inactive_border" = "rgba(b4befecc) rgba(6c7086cc) 45deg";
|
|
|
|
layout = "dwindle";
|
|
|
|
resize_on_border = "true";
|
2024-07-19 15:42:24 -07:00
|
|
|
sensitivity = "0.5";
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
decoration = {
|
|
|
|
rounding = "10";
|
|
|
|
drop_shadow = "false";
|
|
|
|
dim_special = "0.3";
|
|
|
|
blur = {
|
2024-07-21 19:02:10 -07:00
|
|
|
enabled = "yes";
|
|
|
|
size = "6";
|
|
|
|
passes = "3";
|
|
|
|
new_optimizations = "on";
|
|
|
|
ignore_opacity = "on";
|
|
|
|
xray = "false";
|
|
|
|
special = true;
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# basic configuration of git, please change to your own
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Youwen Wu";
|
|
|
|
userEmail = "youwenw@gmail.com";
|
|
|
|
delta.enable = true;
|
|
|
|
extraConfig = {
|
|
|
|
init.defaultBranch = "main";
|
2024-07-11 22:30:59 -07:00
|
|
|
commit.gpgsign = "true";
|
|
|
|
user.signingkey = "8F5E6C1AF90976CA7102917A865658ED1FE61EC3";
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.lazygit.enable = true;
|
|
|
|
|
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
|
|
|
theme = "Tokyo Night";
|
|
|
|
font.name = "CaskaydiaCove Nerd Font";
|
|
|
|
settings = {
|
|
|
|
font_size = 12;
|
|
|
|
window_padding_width = "8 8 0";
|
|
|
|
confirm_os_window_close = -1;
|
|
|
|
shell_integration = "enabled";
|
2024-07-12 01:12:29 -07:00
|
|
|
enable_audio_bell = "no";
|
2024-07-14 11:46:53 -07:00
|
|
|
background_opacity = "0.8";
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-11 16:57:24 -07:00
|
|
|
programs.readline = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = "set editing-mode vi";
|
|
|
|
};
|
|
|
|
|
2024-07-11 20:01:04 -07:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
catppuccin.enable = true;
|
|
|
|
cursorTheme = {
|
|
|
|
name = "Bibata-Modern-Ice";
|
2024-07-11 22:26:06 -07:00
|
|
|
size = 26;
|
2024-07-11 20:01:04 -07:00
|
|
|
};
|
2024-07-21 19:02:10 -07:00
|
|
|
iconTheme = { name = "Papirus-Dark"; };
|
2024-07-11 20:01:04 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-07-11 21:15:44 -07:00
|
|
|
platformTheme.name = "qtct";
|
2024-07-11 20:01:04 -07:00
|
|
|
style.name = "kvantum";
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile = {
|
|
|
|
"Kvantum/kvantum.kvconfig".text = ''
|
|
|
|
[General]
|
|
|
|
theme=GraphiteNordDark
|
|
|
|
'';
|
|
|
|
|
2024-07-21 19:02:10 -07:00
|
|
|
"Kvantum/GraphiteNord".source =
|
|
|
|
"${pkgs.graphite-kde-theme}/share/Kvantum/GraphiteNord";
|
2024-07-11 20:01:04 -07:00
|
|
|
};
|
|
|
|
|
2024-07-11 03:56:19 -07:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
mainBar = {
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
2024-07-11 12:01:02 -07:00
|
|
|
height = 24;
|
|
|
|
width = 1600;
|
|
|
|
reload-style-on-change = true;
|
|
|
|
margin = "10px 0px 0px 0px";
|
|
|
|
modules-left = [ "hyprland/window" "hyprland/workspaces" ];
|
|
|
|
modules-right = [ "backlight" "group/adjustable" "custom/weather" ];
|
|
|
|
modules-center = [ "network" "group/hardware" "clock" ];
|
2024-07-11 03:56:19 -07:00
|
|
|
"hyprland/workspaces" = {
|
2024-07-11 12:01:02 -07:00
|
|
|
active-only = false;
|
|
|
|
all-outputs = false;
|
|
|
|
format = "{icon}";
|
|
|
|
persistent-workspaces = {
|
|
|
|
eDP-1 = [ 1 ];
|
|
|
|
DP-1 = [ 2 3 4 5 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"group/hardware" = {
|
|
|
|
orientation = "inherit";
|
|
|
|
modules = [ "cpu" "memory" "battery" ];
|
|
|
|
};
|
|
|
|
"group/adjustable" = {
|
|
|
|
orientation = "inherit";
|
|
|
|
drawer = {
|
|
|
|
transition-duration = 500;
|
|
|
|
transition-left-to-right = true;
|
|
|
|
};
|
|
|
|
modules = [ "pulseaudio" "mpris" ];
|
|
|
|
};
|
|
|
|
"custom/weather" = {
|
|
|
|
orientation = "horizontal";
|
2024-07-21 19:02:10 -07:00
|
|
|
exec = ''curl wttr.in/?format="%l:%20%t"'';
|
2024-07-11 12:01:02 -07:00
|
|
|
interval = 10;
|
|
|
|
};
|
|
|
|
cpu = {
|
|
|
|
interval = 10;
|
|
|
|
format = "{usage}% ";
|
|
|
|
};
|
|
|
|
memory = {
|
|
|
|
interval = 10;
|
|
|
|
format = "{percentage}% ";
|
|
|
|
};
|
|
|
|
# mpris = {
|
|
|
|
# format-playing = " {title} ";
|
|
|
|
# format-paused = " {title} ";
|
|
|
|
# format-stopped = "Nothing Playing";
|
|
|
|
# };
|
2024-07-21 19:02:10 -07:00
|
|
|
tray = { spacing = 10; };
|
|
|
|
clock = { format = "{:%a %b %d, %I:%M %p} "; };
|
2024-07-11 12:01:02 -07:00
|
|
|
backlight = {
|
|
|
|
device = "intel_backlight";
|
|
|
|
format = "{percent}% {icon}";
|
|
|
|
format-icons = [ "" "" ];
|
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
good = 95;
|
|
|
|
warning = 20;
|
|
|
|
critical = 10;
|
|
|
|
};
|
|
|
|
format = "{capacity}% {icon}";
|
|
|
|
format-icons = [ "" "" "" "" "" ];
|
|
|
|
};
|
2024-07-21 19:02:10 -07:00
|
|
|
"hyprland/window" = { format = "{class}"; };
|
2024-07-11 12:01:02 -07:00
|
|
|
network = {
|
|
|
|
format-wifi = "{essid} ";
|
|
|
|
format-linked = "{ifname} (No IP) ";
|
|
|
|
format-disconnected = "Disconnected ⚠";
|
|
|
|
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
|
|
|
};
|
|
|
|
pulseaudio = {
|
|
|
|
format = "{volume}% {icon} {format_source}";
|
|
|
|
format-bluetooth = "{volume}% {icon} {format_source}";
|
|
|
|
format-bluetooth-muted = " {icon} {format_source}";
|
|
|
|
format-muted = " {format_source}";
|
|
|
|
format-source = "{volume}% ";
|
|
|
|
format-source-muted = "";
|
2024-07-21 19:02:10 -07:00
|
|
|
format-icons = { default = [ "" "" "" ]; };
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-11 11:37:27 -07:00
|
|
|
style = ./waybar/waybar.css;
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.zoxide = {
|
|
|
|
enable = true;
|
2024-07-30 04:12:33 -07:00
|
|
|
# enableZshIntegration = true;
|
|
|
|
enableFishIntegration = true;
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
|
2024-07-11 23:24:42 -07:00
|
|
|
programs.gh = {
|
|
|
|
enable = true;
|
|
|
|
extensions = [ pkgs.github-copilot-cli ];
|
|
|
|
};
|
|
|
|
|
2024-07-11 23:19:59 -07:00
|
|
|
programs.oh-my-posh = {
|
|
|
|
enable = true;
|
2024-07-30 04:12:33 -07:00
|
|
|
# enableZshIntegration = true;
|
|
|
|
enableFishIntegration = true;
|
2024-07-11 23:20:42 -07:00
|
|
|
enableBashIntegration = true;
|
2024-07-30 04:12:33 -07:00
|
|
|
useTheme = "catppuccin_macchiato";
|
2024-07-11 23:19:59 -07:00
|
|
|
};
|
|
|
|
|
2024-07-11 03:56:19 -07:00
|
|
|
programs.zsh = {
|
2024-07-30 04:12:33 -07:00
|
|
|
enable = false;
|
2024-07-11 03:56:19 -07:00
|
|
|
enableCompletion = true;
|
|
|
|
autosuggestion.enable = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
ls = "eza -l --icons=auto";
|
|
|
|
update = "sudo nixos-rebuild switch";
|
|
|
|
};
|
|
|
|
defaultKeymap = "viins";
|
2024-07-11 23:09:25 -07:00
|
|
|
|
|
|
|
zimfw = {
|
2024-07-11 03:56:19 -07:00
|
|
|
enable = true;
|
2024-07-11 23:09:25 -07:00
|
|
|
disableVersionCheck = true;
|
|
|
|
degit = true;
|
|
|
|
zmodules = [
|
|
|
|
"environment"
|
|
|
|
"git"
|
|
|
|
"input"
|
|
|
|
"termtitle"
|
|
|
|
"utility"
|
|
|
|
"exa"
|
|
|
|
"fzf"
|
|
|
|
"magic-enter"
|
2024-07-11 03:56:19 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-30 04:12:33 -07:00
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
rebuild = "sudo nixos-rebuild switch";
|
|
|
|
ls = "eza -l --icons=auto";
|
|
|
|
};
|
|
|
|
interactiveShellInit = ''
|
|
|
|
fish_vi_key_bindings
|
|
|
|
set -g fish_greeting
|
|
|
|
'';
|
2024-07-30 04:32:21 -07:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "autopair";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "jorgebucaran";
|
|
|
|
repo = "autopair.fish";
|
|
|
|
rev = "4d1752ff5b39819ab58d7337c69220342e9de0e2";
|
|
|
|
hash = "sha256-qt3t1iKRRNuiLWiVoiAYOu+9E7jsyECyIqZJ/oRIT1A=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "fzf";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "PatrickF1";
|
|
|
|
repo = "fzf.fish";
|
|
|
|
rev = "8920367cf85eee5218cc25a11e209d46e2591e7a";
|
|
|
|
hash = "sha256-T8KYLA/r/gOKvAivKRoeqIwE2pINlxFQtZJHpOy9GMM=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "sponge";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "meaningful-ooo";
|
|
|
|
repo = "sponge";
|
|
|
|
rev = "384299545104d5256648cee9d8b117aaa9a6d7be";
|
|
|
|
hash = "sha256-MdcZUDRtNJdiyo2l9o5ma7nAX84xEJbGFhAVhK+Zm1w=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "done";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "franciscolourenco";
|
|
|
|
repo = "done";
|
|
|
|
rev = "eb32ade85c0f2c68cbfcff3036756bbf27a4f366";
|
|
|
|
hash = "sha256-DMIRKRAVOn7YEnuAtz4hIxrU93ULxNoQhW6juxCoh4o=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.eza = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
enableBashIntegration = true;
|
2024-07-30 04:12:33 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.bash.enable = true;
|
2024-07-11 03:56:19 -07:00
|
|
|
|
|
|
|
programs.librewolf = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
"webgl.disabled" = false;
|
|
|
|
"privacy.resistFingerprinting" = false;
|
|
|
|
"privacy.clearOnShutdown.history" = false;
|
|
|
|
"privacy.clearOnShutdown.cookies" = false;
|
|
|
|
"network.cookie.lifetimePolicy" = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# This value determines the home Manager release that your
|
|
|
|
# configuration is compatible with. This helps avoid breakage
|
|
|
|
# when a new home Manager release introduces backwards
|
|
|
|
# incompatible changes.
|
|
|
|
home.stateVersion = "24.05";
|
|
|
|
#
|
|
|
|
# You can update home Manager without changing this value. See
|
|
|
|
# the home Manager release notes for a list of state version
|
|
|
|
# changes in each release.
|
|
|
|
|
|
|
|
# Let home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
}
|