Move the public keys out of secrets

This commit is contained in:
Jimbo 2024-10-15 22:41:19 -04:00
parent df1532ece0
commit 00ab80d1b8
14 changed files with 45 additions and 28 deletions

View file

@ -2,7 +2,24 @@
{
services = {
# Configure greetd for "auto" login (single user only)
greetd = {
greetd = let
startSway = pkgs.writeScript "startsway" ''
if lspci -k | grep "Kernel driver in use: nvidia" &> /dev/null; then
export LIBVA_DRIVER_NAME=nvidia
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
else
:
fi
export WLR_RENDERER=vulkan
export XDG_CURRENT_DESKTOP=sway
export QT_QPA_PLATFORM="wayland;xcb"
sway --unsupported-gpu
'';
in {
enable = true;
restart = true;
settings = {
@ -11,22 +28,7 @@
switch = true;
};
default_session = {
command = ''
if lspci -k | grep "Kernel driver in use: nvidia" &> /dev/null; then
export LIBVA_DRIVER_NAME=nvidia
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
else
:
fi
export WLR_RENDERER=vulkan
export XDG_CURRENT_DESKTOP=sway
export QT_QPA_PLATFORM="wayland;xcb"
sway --unsupported-gpu
'';
command = "${startSway}";
user = "jimbo";
};
};