mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
90 lines
2 KiB
Nix
90 lines
2 KiB
Nix
{config, lib, pkgs, osConfig, ...}:
|
|
|
|
let
|
|
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
./ewwbar.nix
|
|
./keybinds.nix
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
swww
|
|
];
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
package = pkgs.hyprland;
|
|
# Whether to enable XWayland
|
|
xwayland.enable = true;
|
|
|
|
# Optional
|
|
# Whether to enable hyprland-session.target on hyprland startup
|
|
systemd.enable = true;
|
|
# Whether to enable patching wlroots for better Nvidia support
|
|
enableNvidiaPatches = true;
|
|
|
|
extraConfig = if (osConfig.networking.hostName == "NicksNixDesktop") then
|
|
''
|
|
monitor=DP-2, 2560x1440@144, 1920x0, 1
|
|
monitor=DP-3, 1920x1080@60, 0x360,1
|
|
|
|
env = LIBVA_DRIVER_NAME,nvidia
|
|
env = XDG_SESSION_TYPE,wayland
|
|
env = GBM_BACKEND,nvidia-drm
|
|
env = WLR_NO_HARDWARE_CURSORS,1
|
|
''
|
|
else ''
|
|
|
|
'';
|
|
|
|
settings = {
|
|
"$mod" = "SUPER";
|
|
|
|
exec-once = [
|
|
"${pkgs.swww}/bin/swww init & sleep 0.5 & ${pkgs.swww}/bin/swww /home/nixolas/Downloads/RecountERD.png"
|
|
"eww open bar"
|
|
];
|
|
|
|
input = {
|
|
kb_layout = "us";
|
|
sensitivity = -0.85;
|
|
accel_profile = "adaptive";
|
|
touchpad.disable_while_typing = true;
|
|
};
|
|
|
|
general = {
|
|
gaps_in = 5;
|
|
gaps_out = 10;
|
|
border_size = 1.7;
|
|
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
};
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
|
animations = {
|
|
enabled = true;
|
|
animation = [
|
|
"windowsOut, 1, 7, default, popin 80%"
|
|
"border, 1, 10, default"
|
|
"borderangle, 1, 8, default"
|
|
"fade, 1, 7, default"
|
|
"workspaces, 1, 6, default"
|
|
];
|
|
};
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
|
decoration = {
|
|
shadow_offset = "0 5";
|
|
rounding = 5;
|
|
"col.shadow" = "rgba(00000099)";
|
|
};
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
|
gestures = { workspace_swipe = false; };
|
|
|
|
};
|
|
};
|
|
|
|
}
|