feat: f*ck you nvidia

This commit is contained in:
Jacob Bachmann 2024-04-29 22:37:44 +02:00
parent bb446c29ee
commit 36ace852a8
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
15 changed files with 95 additions and 46 deletions

View file

@ -8,29 +8,43 @@
nomad = {
config = {
"LVDS-1" = {
enable = false;
};
};
};
samsung = {
fingerprint = {
"DP-1" = "00ffffffffffff004c2d830e000e0001011c0103806b3c780a23ada4544d99260f474abdef80714f81c0810081809500a9c0b300010104740030f2705a80b0588a00501d7400001e023a801871382d40582c4500501d7400001e000000fd00184b0f511e000a202020202020000000fc0053414d53554e470a202020202001b902034cf0535f101f041305142021225d5e626364071603122909070715075057070183010000e2004fe30503016e030c001000b83c20008001020304e3060d01e50e60616566e5018b849001011d80d0721c1620102c2580501d7400009e662156aa51001e30468f3300501d7400001e000000000000000000000000000000a3";
};
config = {
"DP-1" = {
enable = true;
primary = true;
mode = "3840x2160";
rate = "59.94";
position = "0x0";
};
};
};
station = {
config = {
"LVDS-1" = {
enable = false;
};
"DP-1-3" = {
enable = true;
enable = false;
mode = "1920x1080";
position = "0x0";
};
"DP-1-2" = {
enable = true;
enable = false;
mode = "1920x1080";
position = "1920x0";
};
"VGA-1-2" = {
enable = true;
enable = false;
mode = "1920x1080";
position = "3840x0";
};

View file

@ -10,6 +10,7 @@ in
imports = [
./autorandr.nix
./rofi.nix
];
home.packages = with pkgs; [
@ -26,6 +27,7 @@ in
nextcloud-client # nextcloud client to connect to any instance
libsForQt5.kdeconnect-kde # sync phone and pc
system-config-printer # printer manager
gnome3.adwaita-icon-theme
];
xsession.windowManager.i3 = {
@ -33,8 +35,10 @@ in
config = {
modifier = "Mod4";
terminal = "${pkgs.alacritty}/bin/alacritty";
menu = "${pkgs.dmenu}/bin/dmenu_run";
menu = "${config.programs.rofi.package}/bin/rofi -show drun";
startup = with pkgs; [
{ command = "${gnome.gnome-keyring}/bin/gnome-keyring-daemon --start --components=ssh,secrets,pkcs11"; }
{ command = "${autorandr}/bin/autorandr -c"; }
{ command = "${feh}/bin/feh --bg-fill ${common.wallpaper.default}"; }
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
{ command = "${blueman}/bin/blueman-applet"; }

View file

@ -0,0 +1,13 @@
{ pkgs, lib, ... }:
let
common = (import ../common.nix) { pkgs = pkgs; lib = lib; };
in
{
programs.rofi = {
enable = true;
font = common.font;
location = "center";
};
}

View file

@ -69,7 +69,7 @@ in
'' + optionalString nvidia.enable ''
# nvidia
export WLR_RENDERER=vulkan;
export LIBVA_DRIVER_NAME,nvidia;
# export LIBVA_DRIVER_NAME,nvidia;
# export GBM_BACKEND=nvidia-drm;
export __GL_GSYNC_ALLOWED=0;
export __GL_VRR_ALLOWED=0;