working on nvidia settings

This commit is contained in:
Matt Nish-Lapidus 2024-10-07 23:39:25 -04:00
parent 36798975c7
commit 1781b9c4ad
9 changed files with 2176 additions and 428 deletions

View file

@ -0,0 +1,9 @@
#!/usr/bin/env fish
begin
set -lx __NV_PRIME_RENDER_OFFLOAD=1
set -lx __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
set -lx __GLX_VENDOR_LIBRARY_NAME=nvidia
set -lx __VK_LAYER_NV_optimus=NVIDIA_only
exec $argv
end

View file

@ -0,0 +1,11 @@
# rebuild nixos from config
sysup:
sudo nixos-rebuild switch --flake ~/source/nixos-config/#eddie
# rebuild home from config
homeup:
home-manager switch --flake ~/source/nixos-config#emenel
# update flake repos
flakeup:
cd '~/source/nixos-config' && sudo nix flake update

View file

@ -0,0 +1,26 @@
(defcfg
input (device-file "/dev/input/by-id/usb-nullbits_SNAP-event-kbd")
output (uinput-sink "kmonad-snap")
fallthrough true)
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = \ del
tab q w e r t y u i o p [ ] bspc
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl slck lmet lalt spc ralt rmet rctrl)
(defalias
ctrlesc (tap-hold-next-release 200 esc lctrl)
sp-lsft (tap-hold-next-release 200 \( lsft)
sp-rsft (tap-hold-next-release 200 \) lsft)
hypr C-A-M-S)
(deflayer qwerty
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = \ del
tab q w e r t y u i o p [ ] bspc
@ctrlesc a s d f g h j k l ; ' ret
@sp-lsft z x c v b n m , . / @sp-rsft
@hypr lctl lalt lmet spc rmet ralt rctrl)