Get Hyprland and stuff all set up on desktop
This commit is contained in:
parent
96739c5979
commit
44c5a27387
15 changed files with 668 additions and 13 deletions
|
@ -4,7 +4,7 @@
|
|||
imports = [ (import ./hardware-configuration.nix) ];
|
||||
|
||||
services.xserver = {
|
||||
videoDrivers = [ "nvidia" ];
|
||||
videoDrivers = [ "nvidia-dkms" ];
|
||||
# nvidiaXineramaInfoOrder sets primary display
|
||||
# DFP-0 is default and would set left monitor, DVI-D-0, to be primary
|
||||
screenSection = ''
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
hardware.enableRedistributableFirmware = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.nvidia.open = true;
|
||||
hardware.graphics.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
|
@ -22,7 +23,7 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-label/boot";
|
||||
device = "/dev/sda5";
|
||||
fsType = "vfat";
|
||||
};
|
||||
# Prevent SCARLETT from auto-mounting
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
imports = [
|
||||
(import ./apps.nix)
|
||||
(import ./i3)
|
||||
(import ./hypr)
|
||||
];
|
||||
}
|
||||
|
|
7
hosts/desktop/hypr/default.nix
Normal file
7
hosts/desktop/hypr/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
home.file = {
|
||||
".config/hypr/monitors.conf".source = ./monitors.conf;
|
||||
};
|
||||
}
|
39
hosts/desktop/hypr/monitors.conf
Normal file
39
hosts/desktop/hypr/monitors.conf
Normal file
|
@ -0,0 +1,39 @@
|
|||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=HDMI-A-1, 1920x1080@100.05, 1080x420, 1
|
||||
monitor=DVI-D-1, 1920x1080@60.00, 0x0, 1, transform, 1
|
||||
monitor=DP-1, 1920x1080@60.04Hz, 1080x1500, 1
|
||||
|
||||
workspace = name:1, monitor:HDMI-A-1
|
||||
workspace = name:2, monitor:DVI-D-1
|
||||
workspace = name:3, monitor:DP-1
|
||||
|
||||
# See https://github.com/HyDE-Project/HyDE/blob/master/Configs/.config/hypr/nvidia.conf
|
||||
|
||||
# █▄░█ █░█ █ █▀▄ █ ▄▀█
|
||||
# █░▀█ ▀▄▀ █ █▄▀ █ █▀█
|
||||
|
||||
# Hyprland Nvidia Configuration
|
||||
# See https://wiki.hyprland.org/Nvidia/
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia # Disable this if you have issues with screensharing
|
||||
|
||||
# If you want to try hardware cursors,
|
||||
# you can enable them by setting `cursor:no_hardware_cursors = false` ,
|
||||
# but it will require also enabling `cursor:allow_dumb_copy`
|
||||
# which may cause small to major hitches whenever the cursor shape changes.
|
||||
# If this is a problem on your system, keep hardware cursors disabled.
|
||||
cursor:no_hardware_cursors = true # Set to true to avoid hitches
|
||||
# cursor:allow_dumb_copy = true
|
||||
|
||||
# https://wiki.hyprland.org/Nvidia/#va-api-hardware-video-acceleration
|
||||
# Hardware video acceleration on Nvidia and Wayland is
|
||||
# possible with the nvidia-vaapi-driver.
|
||||
# This may solve specific issues in Electron apps.
|
||||
env = NVD_BACKEND,direct # Requires 'libva-nvidia-driver' package
|
||||
|
||||
# https://wiki.hyprland.org/Nvidia/#regarding-environment-variables
|
||||
# If you encounter crashes in Firefox, remove this line
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
|
||||
# If you have a multi-GPU setup and you are facing lag in external monitor.
|
||||
# See https://wiki.hyprland.org/Configuring/Multi-GPU/
|
Loading…
Add table
Add a link
Reference in a new issue