modules step 1

This commit is contained in:
Odweta
2026-01-11 18:11:54 +01:00
parent 968df831c7
commit dd5b4fe5ed
9 changed files with 305 additions and 198 deletions
+101
View File
@@ -0,0 +1,101 @@
{ pkgs, ... }:
{
# program enables
programs.hyprland = {
enable = true;
withUSWM = true;
};
programs.hyprlock.enable = true;
programs.hypridle.enable = true;
programs.wofi.enable = true;
# some env vars for improvement
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
WLR_NO_HARDWARE_CURSORS = "1";
};
# hypr packages
environment.systemPackages = with pkgs; [
hyprland
hypridle
hyprlock
hyprpaper
hyprpolkitagent
hyprcursor
];
# hyprland config
wayland.windowManager.hyprland = {
enable = true;
settings = {
monitor = [
"HDMI-A-2, 1920x1080@60, 0x0, 1"
"eDP-1, 1920x1080@60, 0x1080, 1"
];
input = {
kb_layout = "us,cz";
kb_variant = ",qwerty";
kb_options = "grp:alt_shift_toggle";
touchpad = {
natural_scroll = true;
};
};
general = {
gaps_in = 5;
gaps_out = 10;
border_size = 2;
layout = "master";
};
master = {
mfact = 0.5;
};
decoration = {
rounding = 8;
blur = {
size = 3;
passes = 2;
};
};
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
};
"$mod" = "SUPER";
"$term" = "kitty";
"$menu" = "wofi --show run";
bind = [
"$mod SHIFT, RETURN, exec, $term"
"$mod SHIFT, C, killactive"
"$mod SHIFT, Q, exit"
"$mod, P, exec, $menu"
"$mod, mouse:272, movewindow"
"$mod, H, movefocus, l"
"$mod, J, movefocus, r"
"$mod, K, movefocus, u"
"$mod, L, movefocus, d"
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
"$mod, 4, workspace, 4"
"$mod SHIFT, 1, movetoworkspace, 1"
"$mod SHIFT, 2, movetoworkspace, 2"
"$mod SHIFT, 3, movetoworkspace, 3"
"$mod SHIFT, 4, movetoworkspace, 4"
];
};
};
}