Compare commits

...

3 commits

Author SHA1 Message Date
e1ca37ce27 fixed wezterm input lag 2023-10-23 18:10:49 -07:00
3eaf0f8d66 added hyperland 2023-10-23 17:59:48 -07:00
b2761fb71a added hyprland to sddm menu 2023-10-23 16:58:15 -07:00
4 changed files with 47 additions and 27 deletions

View file

@ -22,6 +22,8 @@
XDG_STATE_HOME = "$HOME/.local/state"; XDG_STATE_HOME = "$HOME/.local/state";
}; };
programs.hyprland.enable = true;
services.xserver = { services.xserver = {
enable = true; enable = true;
layout = "us"; layout = "us";
@ -37,9 +39,7 @@
]; ];
}; };
displayManager = { displayManager.sddm.enable = true;
sddm.enable = true;
};
libinput = { libinput = {
enable = true; enable = true;

View file

@ -32,7 +32,6 @@
}; };
systemd.services.sshd.wantedBy = [ "multi-user.target" ]; systemd.services.sshd.wantedBy = [ "multi-user.target" ];
services.xserver = { services.xserver = {
videoDrivers = [ "nvidia" ]; videoDrivers = [ "nvidia" ];
# xrandr for screen information. <connection>: <resolution> <offset>, <next connection> # xrandr for screen information. <connection>: <resolution> <offset>, <next connection>
@ -45,9 +44,14 @@
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
hardware.nvidia.modesetting.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
};
time.hardwareClockInLocalTime = true; time.hardwareClockInLocalTime = true;
boot.loader = { boot.loader = {

View file

@ -4,34 +4,47 @@ let
in in
{ {
home.packages = with pkgs; [
swww
];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = pkgs.hyprland; package = pkgs.hyprland;
# Whether to enable XWayland # Whether to enable XWayland
xwayland.enable = true; xwayland.enable = true;
# Optional # Optional
# Whether to enable hyprland-session.target on hyprland startup # Whether to enable hyprland-session.target on hyprland startup
systemd.enable = true; systemd.enable = true;
# Whether to enable patching wlroots for better Nvidia support # Whether to enable patching wlroots for better Nvidia support
enableNvidiaPatches = true; enableNvidiaPatches = true;
settings = { settings = {
decoration = { exec-once = [
shadow_offset = "0 5"; "${pkgs.swww}/bin/swww init & sleep 0.5 & ${pkgs.swww}/bin/swww /home/nixolas/Downloads/RecountERD.png"
"col.shadow" = "rgba(00000099)"; ];
};
"$mod" = "SUPER"; decoration = {
shadow_offset = "0 5";
bindm = [ "col.shadow" = "rgba(00000099)";
# mouse movements
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
"$mod ALT, mouse:272, resizewindow"
];
}; };
"$mod" = "SUPER";
bindm = [
# mouse movements
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
"$mod ALT, mouse:272, resizewindow"
];
bind = [
"$mod, RETURN, exec, wezterm start --always-new-process"
# "$mod, Q, exec, firefox"
];
}; };
};
} }

View file

@ -9,6 +9,7 @@ in
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;
package = pkgs.wezterm; package = pkgs.wezterm;
enableZshIntegration = true;
colorSchemes = { colorSchemes = {
SeeThroughBlack = { SeeThroughBlack = {
@ -32,10 +33,12 @@ in
}; };
# the "enable_wayland = false" config line forces wezterm to use xwayland instead of wayland
extraConfig = '' extraConfig = ''
local wezterm = require 'wezterm' local wezterm = require 'wezterm'
return { return {
enable_wayland = false,
window_background_opacity = 0.8, window_background_opacity = 0.8,
font = wezterm.font_with_fallback { font = wezterm.font_with_fallback {
'DejaVuSansMono', 'DejaVuSansMono',