2023-12-15 12:40:04 +05:00
|
|
|
{
|
2024-07-08 15:07:24 +05:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-07-18 15:49:05 +05:00
|
|
|
bonPkgs,
|
2024-07-21 17:14:58 +05:00
|
|
|
bonLib,
|
2024-07-08 15:07:24 +05:00
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
# Users
|
|
|
|
users.users.l-nafaryus = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "L-Nafaryus";
|
2024-08-09 11:37:57 +05:00
|
|
|
extraGroups = ["networkmanager" "wheel" "audio" "libvirtd" "input" "video" "disk" "wireshark"];
|
2024-07-08 15:07:24 +05:00
|
|
|
group = "users";
|
|
|
|
uid = 1000;
|
|
|
|
initialPassword = "nixos";
|
|
|
|
shell = pkgs.fish;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "hmbackup";
|
|
|
|
|
|
|
|
home-manager.users.l-nafaryus = {pkgs, ...}: let
|
|
|
|
hmConfig = config.home-manager.users.l-nafaryus;
|
|
|
|
in {
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
home.username = "l-nafaryus";
|
|
|
|
home.homeDirectory = "/home/l-nafaryus";
|
|
|
|
imports = [
|
|
|
|
inputs.catppuccin.homeManagerModules.catppuccin
|
2024-07-12 15:30:50 +05:00
|
|
|
inputs.ags.homeManagerModules.default
|
2024-07-21 17:14:58 +05:00
|
|
|
bonLib.preconfiguredModules.homeManager.ags
|
2024-07-08 15:07:24 +05:00
|
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
#gnupg
|
|
|
|
git
|
2024-08-09 11:37:57 +05:00
|
|
|
#nnn
|
2024-07-08 15:07:24 +05:00
|
|
|
pass
|
|
|
|
taskwarrior
|
|
|
|
#tmux
|
|
|
|
|
|
|
|
gparted
|
|
|
|
|
2024-08-09 11:37:57 +05:00
|
|
|
firefox
|
2024-07-08 15:07:24 +05:00
|
|
|
thunderbird
|
|
|
|
|
|
|
|
pipewire.jack # pw-jack
|
|
|
|
carla
|
|
|
|
qpwgraph
|
|
|
|
wireplumber
|
|
|
|
yabridge
|
|
|
|
yabridgectl
|
|
|
|
|
|
|
|
lutris
|
|
|
|
wine
|
|
|
|
winetricks
|
|
|
|
gamemode
|
|
|
|
|
|
|
|
vlc
|
|
|
|
lollypop
|
|
|
|
gimp
|
|
|
|
inkscape
|
|
|
|
imagemagick
|
|
|
|
blender
|
|
|
|
ardour
|
|
|
|
olive-editor
|
|
|
|
openshot-qt
|
|
|
|
musescore
|
|
|
|
# soundux # unmaintained
|
|
|
|
losslesscut-bin
|
|
|
|
yt-dlp
|
|
|
|
ffmpeg
|
|
|
|
|
|
|
|
calf
|
|
|
|
zynaddsubfx
|
|
|
|
lsp-plugins
|
|
|
|
x42-plugins
|
|
|
|
cardinal
|
|
|
|
gxplugins-lv2
|
|
|
|
xtuner
|
|
|
|
aether-lv2
|
2024-07-18 15:49:05 +05:00
|
|
|
aeolus
|
|
|
|
grandorgue
|
2024-07-08 15:07:24 +05:00
|
|
|
|
|
|
|
qbittorrent
|
|
|
|
transmission_3-qt
|
|
|
|
telegram-desktop
|
|
|
|
|
|
|
|
onlyoffice-bin
|
|
|
|
|
|
|
|
jdk
|
2024-07-18 15:49:05 +05:00
|
|
|
bonPkgs.ultimmc
|
2024-07-08 15:07:24 +05:00
|
|
|
|
|
|
|
liberation_ttf
|
|
|
|
|
|
|
|
steamtinkerlaunch
|
|
|
|
|
2024-08-09 11:37:57 +05:00
|
|
|
discord
|
|
|
|
webcord
|
|
|
|
vesktop
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
tor
|
|
|
|
networkmanagerapplet
|
|
|
|
#rofi-wayland
|
|
|
|
kgx
|
|
|
|
dunst
|
|
|
|
libnotify
|
|
|
|
playerctl
|
|
|
|
wl-gammarelay-rs
|
|
|
|
# btop
|
|
|
|
lua
|
|
|
|
# bat
|
|
|
|
musikcube
|
|
|
|
swww
|
|
|
|
hyprshot
|
|
|
|
mangohud
|
|
|
|
gamescope
|
|
|
|
libstrangle
|
|
|
|
wl-clipboard
|
|
|
|
cliphist
|
|
|
|
tree
|
2024-07-18 15:49:05 +05:00
|
|
|
bonPkgs.bonvim
|
2024-08-05 23:03:10 +05:00
|
|
|
|
|
|
|
freenect
|
2024-08-09 11:37:57 +05:00
|
|
|
|
|
|
|
mpc-cli
|
2024-07-08 15:07:24 +05:00
|
|
|
];
|
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
configPackages = with pkgs; [
|
|
|
|
#xdg-desktop-portal-wlr
|
|
|
|
xdg-desktop-portal-hyprland
|
|
|
|
];
|
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
];
|
2023-12-15 12:40:04 +05:00
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# Theme
|
|
|
|
catppuccin = {
|
|
|
|
# global, for all enabled programs
|
|
|
|
enable = true;
|
|
|
|
flavor = "macchiato";
|
|
|
|
accent = "green";
|
|
|
|
};
|
2024-06-20 00:16:28 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
# TODO: fix catppuccin deprecation. Provide Paper icons to gtk and gnomeShell manually. (+ regreet)
|
2024-07-12 15:30:50 +05:00
|
|
|
catppuccin = {
|
|
|
|
enable = true;
|
|
|
|
accent = "green";
|
|
|
|
flavor = "macchiato";
|
|
|
|
gnomeShellTheme = true;
|
|
|
|
icon = {
|
|
|
|
enable = true;
|
|
|
|
accent = "green";
|
|
|
|
flavor = "macchiato";
|
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
# General
|
|
|
|
fish = {
|
|
|
|
enable = true;
|
|
|
|
interactiveShellInit = ''
|
|
|
|
set fish_greeting
|
|
|
|
'';
|
|
|
|
plugins = with pkgs.fishPlugins;
|
|
|
|
map (p: {
|
|
|
|
name = p.pname;
|
|
|
|
src = p.src;
|
|
|
|
}) [
|
|
|
|
fzf-fish
|
|
|
|
tide
|
|
|
|
grc
|
|
|
|
hydro
|
|
|
|
];
|
|
|
|
functions = {
|
|
|
|
fish-theme-configure = ''
|
|
|
|
tide configure \
|
|
|
|
--auto \
|
|
|
|
--style=Lean \
|
|
|
|
--prompt_colors='True color' \
|
|
|
|
--show_time='12-hour format' \
|
|
|
|
--lean_prompt_height='Two lines' \
|
|
|
|
--prompt_connection=Disconnected \
|
|
|
|
--prompt_spacing=Compact \
|
|
|
|
--icons='Many icons' \
|
|
|
|
--transient=No
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2024-08-09 11:37:57 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
userName = "L-Nafaryus";
|
|
|
|
userEmail = "l.nafaryus@gmail.com";
|
|
|
|
signing = {
|
|
|
|
key = "86F1EA98B48FFB19";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
extraConfig = {
|
|
|
|
# ignore trends
|
|
|
|
init.defaultBranch = "master";
|
|
|
|
core = {
|
|
|
|
quotePath = false;
|
|
|
|
commitGraph = true;
|
|
|
|
whitespace = "trailing-space";
|
|
|
|
};
|
|
|
|
receive.advertisePushOptions = true;
|
|
|
|
gc.writeCommitGraph = true;
|
|
|
|
diff.submodule = "log";
|
|
|
|
};
|
|
|
|
aliases = {
|
|
|
|
plog = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
|
|
|
};
|
|
|
|
};
|
2024-08-09 11:37:57 +05:00
|
|
|
|
|
|
|
# TODO: bat cannot determine catppuccin theme
|
2024-07-08 15:07:24 +05:00
|
|
|
bat.enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
btop = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
cpu_bottom = true;
|
|
|
|
proc_tree = true;
|
|
|
|
};
|
|
|
|
};
|
2024-08-09 11:37:57 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
fzf.enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
tmux.enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
lazygit.enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
gpg = {
|
|
|
|
enable = true;
|
|
|
|
homedir = "${hmConfig.xdg.configHome}/gnupg";
|
|
|
|
mutableKeys = true;
|
|
|
|
mutableTrust = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
# TODO: replace existing ssh key with gpg provided
|
2024-07-08 15:07:24 +05:00
|
|
|
};
|
|
|
|
|
2024-08-09 11:37:57 +05:00
|
|
|
nnn = {
|
2024-07-08 15:07:24 +05:00
|
|
|
enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
package = pkgs.nnn.override {withNerdIcons = true;};
|
|
|
|
bookmarks = {
|
|
|
|
d = "~/Downloads";
|
|
|
|
p = "~/projects";
|
|
|
|
i = "~/Pictures";
|
|
|
|
m = "~/Music";
|
|
|
|
v = "~/Videos";
|
|
|
|
};
|
|
|
|
plugins = {
|
|
|
|
src = "${hmConfig.programs.nnn.finalPackage}/share/plugins";
|
|
|
|
mappings = {
|
|
|
|
# TODO: add used programs for previews with FIFO support
|
|
|
|
p = "preview-tui";
|
2024-07-08 15:07:24 +05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-08-09 11:37:57 +05:00
|
|
|
|
|
|
|
ncmpcpp.enable = true;
|
|
|
|
|
|
|
|
# Graphical
|
|
|
|
|
|
|
|
wezterm = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.wezterm.packages.x86_64-linux.default;
|
|
|
|
extraConfig = ''
|
|
|
|
return {
|
|
|
|
color_scheme = "Catppuccin Macchiato",
|
|
|
|
default_prog = { "fish" },
|
|
|
|
font_size = 10.0,
|
|
|
|
enable_tab_bar = true,
|
|
|
|
hide_tab_bar_if_only_one_tab = true,
|
|
|
|
term = "wezterm",
|
|
|
|
window_padding = {
|
|
|
|
left = 0,
|
|
|
|
right = 0,
|
|
|
|
top = 0,
|
|
|
|
bottom = 0
|
|
|
|
},
|
|
|
|
# ISSUE: the terminal does not update after some time of use. It only updates with mouse movements. [Wayland, Hyprland]
|
|
|
|
enable_wayland = false
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
rofi = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.rofi-wayland;
|
2024-08-09 11:37:57 +05:00
|
|
|
terminal = "${lib.getExe hmConfig.programs.wezterm.package}";
|
2024-07-08 15:07:24 +05:00
|
|
|
cycle = true;
|
|
|
|
extraConfig = {
|
|
|
|
show-icons = true;
|
|
|
|
disable-history = false;
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
theme = let
|
|
|
|
inherit (hmConfig.lib.formats.rasi) mkLiteral;
|
|
|
|
in {
|
|
|
|
"*" = {
|
|
|
|
border-col = mkLiteral "#a6da95";
|
|
|
|
};
|
|
|
|
window = {
|
|
|
|
border-radius = mkLiteral "5px";
|
|
|
|
};
|
2024-08-09 11:37:57 +05:00
|
|
|
# TODO: make window bigger, for 2k monitor, yeah
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
obs-studio = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
|
|
obs-vkcapture
|
|
|
|
input-overlay
|
|
|
|
obs-pipewire-audio-capture
|
|
|
|
wlrobs
|
|
|
|
inputs.obs-image-reaction.packages.${pkgs.system}.default
|
|
|
|
];
|
|
|
|
};
|
2024-08-09 11:37:57 +05:00
|
|
|
|
|
|
|
mpv = {
|
|
|
|
enable = true;
|
|
|
|
# TODO: check ImPlay for packaging, it's may be better alternative to pure mpv
|
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
};
|
2024-06-20 00:16:28 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
services = {
|
|
|
|
# General
|
|
|
|
gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
defaultCacheTtl = 3600;
|
|
|
|
defaultCacheTtlSsh = 3600;
|
|
|
|
enableSshSupport = true;
|
|
|
|
pinentryPackage = pkgs.pinentry-gtk2;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
};
|
|
|
|
|
2024-08-09 11:37:57 +05:00
|
|
|
#mpd = {
|
|
|
|
# enable = true;
|
|
|
|
#};
|
|
|
|
|
|
|
|
# TODO: meet mpdris2 with system mpd
|
|
|
|
#mpdris2 = {
|
|
|
|
# enable = true;
|
|
|
|
#};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# Graphical
|
|
|
|
hypridle = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
after_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
|
|
|
|
ignore_dbus_inhibit = false;
|
|
|
|
};
|
|
|
|
listener = [
|
|
|
|
{
|
|
|
|
timeout = 300;
|
|
|
|
on-timeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
|
|
|
|
on-resume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
|
|
|
|
}
|
|
|
|
];
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
# Devices (use `hyprctl devices`)
|
|
|
|
"$monitor1" = "AOC Q27G2G3R3B 137P4HA000540";
|
|
|
|
"$monitor2" = "AOC Q27B3MA 17ZPAHA006135";
|
|
|
|
"$keyboard" = "keychron-keychron-k3-pro";
|
|
|
|
"$mouse" = "logitech-g102-lightsync-gaming-mouse";
|
|
|
|
|
|
|
|
# Main programs
|
2024-08-09 11:37:57 +05:00
|
|
|
"$terminal" = "${lib.getExe hmConfig.programs.wezterm.package}";
|
2024-07-08 15:07:24 +05:00
|
|
|
"$menu" = "${lib.getExe hmConfig.programs.rofi.package} -show drun";
|
2024-08-09 11:37:57 +05:00
|
|
|
"$fileManager" = "$terminal -e ${lib.getExe hmConfig.programs.nnn.package}";
|
2024-07-08 15:07:24 +05:00
|
|
|
|
|
|
|
monitor = [
|
|
|
|
"desc:$monitor2, 2560x1440@75, 0x0, auto"
|
|
|
|
"desc:$monitor1, 2560x1440@165, 2560x0, auto"
|
|
|
|
"Unknown-1, disable"
|
|
|
|
];
|
|
|
|
|
|
|
|
exec-once = [
|
2024-07-21 17:14:58 +05:00
|
|
|
"ags &"
|
2024-07-08 15:07:24 +05:00
|
|
|
"nm-applet --indicator &"
|
|
|
|
"blueman-applet &"
|
|
|
|
"wl-gammarelay-rs run &"
|
|
|
|
"systemctl --user start hypridle"
|
|
|
|
"wl-paste --type text --watch cliphist store" #Stores only text data
|
|
|
|
"wl-paste --type image --watch cliphist store" #Stores only image data
|
2024-08-09 11:37:57 +05:00
|
|
|
"swww-daemon & swww img ~/Pictures/wallpapers/current" # wallpaper symlinked
|
2024-07-08 15:07:24 +05:00
|
|
|
];
|
|
|
|
|
|
|
|
env = [
|
|
|
|
"XCURSOR_SIZE,16"
|
|
|
|
"HYPRCURSOR_SIZE,16"
|
|
|
|
"WLR_DRM_NO_ATOMIC,1"
|
|
|
|
];
|
|
|
|
|
|
|
|
general = {
|
|
|
|
gaps_in = 2;
|
|
|
|
gaps_out = 2;
|
2024-06-20 00:16:28 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
border_size = 2;
|
|
|
|
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
|
|
|
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
|
|
"col.inactive_border" = "rgba(595959aa)";
|
|
|
|
|
|
|
|
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
|
|
|
resize_on_border = true;
|
|
|
|
|
|
|
|
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
|
|
|
allow_tearing = true;
|
|
|
|
|
|
|
|
layout = "dwindle";
|
|
|
|
};
|
|
|
|
decoration = {
|
|
|
|
rounding = 5;
|
|
|
|
|
|
|
|
# Change transparency of focused and unfocused windows
|
|
|
|
active_opacity = 1.0;
|
|
|
|
inactive_opacity = 0.95;
|
|
|
|
|
|
|
|
drop_shadow = true;
|
|
|
|
shadow_range = 4;
|
|
|
|
shadow_render_power = 3;
|
|
|
|
"col.shadow" = "rgba(1a1a1aee)";
|
|
|
|
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
|
|
|
blur = {
|
|
|
|
enabled = true;
|
|
|
|
size = 3;
|
|
|
|
passes = 1;
|
|
|
|
|
|
|
|
vibrancy = 0.1696;
|
|
|
|
};
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
animations = {
|
|
|
|
enabled = true;
|
|
|
|
|
|
|
|
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
2024-06-20 00:16:28 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
|
|
|
|
|
|
|
animation = [
|
|
|
|
"windows, 1, 7, myBezier"
|
|
|
|
"windowsOut, 1, 7, default, popin 80%"
|
|
|
|
"border, 1, 10, default"
|
|
|
|
"borderangle, 1, 8, default"
|
|
|
|
"fade, 1, 7, default"
|
|
|
|
"workspaces, 1, 6, default"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
|
|
dwindle = {
|
|
|
|
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
|
|
preserve_split = true; # You probably want this
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
|
|
master = {
|
|
|
|
new_status = "master";
|
2024-04-24 14:26:24 +05:00
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
|
|
|
misc = {
|
|
|
|
force_default_wallpaper = -1; # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
|
|
disable_hyprland_logo = false; # Enable the random hyprland logo / anime girl background. :)
|
2024-05-17 18:28:04 +05:00
|
|
|
};
|
2024-07-08 15:07:24 +05:00
|
|
|
input = {
|
|
|
|
kb_layout = "us,ru";
|
|
|
|
|
|
|
|
follow_mouse = 1;
|
2024-05-17 18:28:04 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
|
|
|
|
|
|
|
touchpad = {
|
|
|
|
natural_scroll = false;
|
|
|
|
};
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
|
|
|
gestures = {
|
|
|
|
workspace_swipe = false;
|
2024-04-24 14:26:24 +05:00
|
|
|
};
|
2023-12-15 12:40:04 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
windowrulev2 = [
|
|
|
|
"suppressevent maximize, class:.*" # You'll probably like this.
|
|
|
|
"float, class:^(steam_app.*)$"
|
|
|
|
"immediate, class:^(steam_app.*)$"
|
|
|
|
"float, class:^(steam_proton.*)$"
|
2024-08-09 11:37:57 +05:00
|
|
|
"float,class:^(org.wezfurlong.wezterm)$"
|
|
|
|
"tile,class:^(org.wezfurlong.wezterm)$"
|
2024-07-08 15:07:24 +05:00
|
|
|
];
|
|
|
|
bind = [
|
|
|
|
"SUPER, Q, exec, $terminal"
|
|
|
|
"SUPER, N, exec, $fileManager"
|
|
|
|
"SUPER, R, exec, $menu"
|
2024-07-21 17:14:58 +05:00
|
|
|
"SUPER, X, exec, ags -t clock"
|
|
|
|
"SUPER, X, exec, ags -t control"
|
|
|
|
"SUPER, X, exec, ags -t systray"
|
|
|
|
"SUPER, X, exec, ags -t workspaces"
|
|
|
|
"SUPER, X, exec, ags -t window-title"
|
2024-07-08 15:07:24 +05:00
|
|
|
|
|
|
|
"SUPER, C, killactive,"
|
|
|
|
"SUPER, M, exit,"
|
|
|
|
"SUPER, V, togglefloating,"
|
|
|
|
"SUPER, F, fullscreen,"
|
|
|
|
"SUPER, J, togglesplit," # dwindle
|
|
|
|
|
|
|
|
# Move focus with mainMod + arrow keys
|
|
|
|
"SUPER, left, movefocus, l"
|
|
|
|
"SUPER, right, movefocus, r"
|
|
|
|
"SUPER, up, movefocus, u"
|
|
|
|
"SUPER, down, movefocus, d"
|
|
|
|
|
|
|
|
# Switch workspaces with mainMod + [0-9]
|
|
|
|
"SUPER, 1, workspace, 1"
|
|
|
|
"SUPER, 2, workspace, 2"
|
|
|
|
"SUPER, 3, workspace, 3"
|
|
|
|
"SUPER, 4, workspace, 4"
|
|
|
|
"SUPER, 5, workspace, 5"
|
|
|
|
"SUPER, 6, workspace, 6"
|
|
|
|
"SUPER, 7, workspace, 7"
|
|
|
|
"SUPER, 8, workspace, 8"
|
|
|
|
"SUPER, 9, workspace, 9"
|
|
|
|
"SUPER, 0, workspace, 10"
|
|
|
|
|
|
|
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
|
|
"SUPER SHIFT, 1, movetoworkspace, 1"
|
|
|
|
"SUPER SHIFT, 2, movetoworkspace, 2"
|
|
|
|
"SUPER SHIFT, 3, movetoworkspace, 3"
|
|
|
|
"SUPER SHIFT, 4, movetoworkspace, 4"
|
|
|
|
"SUPER SHIFT, 5, movetoworkspace, 5"
|
|
|
|
"SUPER SHIFT, 6, movetoworkspace, 6"
|
|
|
|
"SUPER SHIFT, 7, movetoworkspace, 7"
|
|
|
|
"SUPER SHIFT, 8, movetoworkspace, 8"
|
|
|
|
"SUPER SHIFT, 9, movetoworkspace, 9"
|
|
|
|
"SUPER SHIFT, 0, movetoworkspace, 10"
|
|
|
|
|
|
|
|
# special workspace (scratchpad)
|
|
|
|
"SUPER, S, togglespecialworkspace, magic"
|
|
|
|
"SUPER SHIFT, S, movetoworkspace, special:magic"
|
|
|
|
|
|
|
|
"SUPER, SPACE, exec, hyprctl switchxkblayout keychron-keychron-k3-pro next"
|
|
|
|
", PRINT, exec, hyprshot -m region"
|
|
|
|
"SUPER, H, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
|
|
|
];
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
|
|
bindm = [
|
|
|
|
"SUPER, mouse:272, movewindow"
|
|
|
|
"SUPER, mouse:273, resizewindow"
|
|
|
|
];
|
2023-12-26 15:17:02 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
bindel = [
|
|
|
|
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
|
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
|
|
];
|
|
|
|
bindl = [
|
|
|
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
|
|
", XF86AudioPrev, exec, playerctl previous"
|
|
|
|
", XF86AudioPlay, exec, playerctl play-pause"
|
|
|
|
", XF86AudioNext, exec, playerctl next"
|
|
|
|
", XF86MonBrightnessDown, exec, busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -500"
|
|
|
|
", XF86MonBrightnessUp, exec, busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n +500"
|
|
|
|
"SUPER, XF86MonBrightnessDown, exec, busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay Brightness d -0.1"
|
|
|
|
"SUPER, XF86MonBrightnessUp, exec, busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay Brightness d +0.1"
|
|
|
|
];
|
|
|
|
};
|
2024-06-20 00:16:28 +05:00
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# XDG
|
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
mime.enable = true;
|
|
|
|
userDirs.enable = true;
|
|
|
|
};
|
2024-05-17 18:28:04 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# dconf
|
|
|
|
dconf.settings = {
|
|
|
|
"org/virt-manager/virt-manager/connections" = {
|
|
|
|
autoconnect = ["qemu:///system"];
|
|
|
|
uris = ["qemu:///system"];
|
|
|
|
};
|
|
|
|
};
|
2024-05-17 18:28:04 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
home.sessionVariables = {
|
|
|
|
HYPRSHOT_DIR = "${hmConfig.xdg.userDirs.pictures}/screenshots";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.variables = let
|
|
|
|
makePluginPath = name:
|
|
|
|
(lib.makeSearchPath name [
|
|
|
|
"/etc/profiles/per-user/$USER/lib"
|
|
|
|
"/run/current-system/sw/lib"
|
|
|
|
"$HOME/.nix-profile/lib"
|
|
|
|
])
|
|
|
|
+ ":$HOME/.${name}";
|
|
|
|
in {
|
|
|
|
LADSPA_PATH = makePluginPath "ladspa";
|
|
|
|
LV2_PATH = makePluginPath "lv2";
|
|
|
|
VST_PATH = makePluginPath "vst";
|
|
|
|
VST3_PATH = makePluginPath "vst3";
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
# hint electron applications to use wayland
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.extraConfig = "DefaultLimitNOFILE=524288";
|
|
|
|
|
|
|
|
programs.virt-manager.enable = true;
|
|
|
|
|
2024-08-09 11:37:57 +05:00
|
|
|
programs.wireshark = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.wireshark;
|
|
|
|
};
|
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
# Services
|
2024-08-09 11:37:57 +05:00
|
|
|
services.spoofdpi.enable = false;
|
|
|
|
|
|
|
|
services.zapret = {
|
|
|
|
enable = true;
|
|
|
|
mode = "tpws";
|
|
|
|
firewallType = "iptables";
|
|
|
|
disableIpv6 = true;
|
|
|
|
settings = ''
|
|
|
|
MODE_HTTP=1
|
|
|
|
MODE_HTTP_KEEPALIVE=0
|
|
|
|
MODE_HTTPS=1
|
|
|
|
MODE_QUIC=0
|
|
|
|
MODE_FILTER=ipset
|
|
|
|
TPWS_OPT="--hostspell=HOST --split-http-req=method --split-pos=3 --oob"
|
|
|
|
INIT_APPLY_FW=1
|
|
|
|
'';
|
|
|
|
};
|
2024-07-12 15:30:50 +05:00
|
|
|
|
2024-08-09 11:37:57 +05:00
|
|
|
# TODO: remember who use gvfs
|
2024-07-12 15:30:50 +05:00
|
|
|
services.gvfs.enable = true;
|
2024-08-09 11:37:57 +05:00
|
|
|
|
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/media/vault/audio/music";
|
|
|
|
network.listenAddress = "any";
|
|
|
|
network.startWhenNeeded = true;
|
|
|
|
user = "l-nafaryus";
|
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pipewire"
|
|
|
|
name "PipeWire"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.mpd.environment = {
|
|
|
|
# https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
|
|
|
|
# User-id must match above user. MPD will look inside this directory for the PipeWire socket.
|
|
|
|
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.l-nafaryus.uid}";
|
|
|
|
};
|
2023-12-15 12:40:04 +05:00
|
|
|
}
|