Add privacy module to waybar, fix pcmanfm against a config
This commit is contained in:
parent
8d1271c017
commit
032439e4dc
10 changed files with 94 additions and 24 deletions
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./gnome-keyring
|
||||
./greetd
|
||||
./gvfs
|
||||
./keyd
|
||||
./libvirtd
|
||||
|
|
39
modules/system/services/general/greetd/default.nix
Normal file
39
modules/system/services/general/greetd/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.greetd = {
|
||||
enable = config.system.desktop.enable;
|
||||
restart = true;
|
||||
settings = {
|
||||
terminal = {
|
||||
vt = 2;
|
||||
switch = true;
|
||||
};
|
||||
default_session.command = "${pkgs.greetd.tuigreet}/bin/tuigreet";
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc."greetd/environments".text = let
|
||||
initScript = ''
|
||||
if ${pkgs.pciutils}/bin/lspci -k | grep "in use: nvidia" &> /dev/null; then
|
||||
export LIBVA_DRIVER_NAME=nvidia
|
||||
export GBM_BACKEND=nvidia-drm
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
else
|
||||
:
|
||||
fi
|
||||
'';
|
||||
in ''
|
||||
${pkgs.writeScript "startsway" ''
|
||||
${initScript}
|
||||
export QT_QPA_PLATFORM="wayland;xcb"
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
sway --unsupported-gpu
|
||||
''}
|
||||
${pkgs.writeScript "startniri" ''
|
||||
${initScript}
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export XDG_CURRENT_DESKTOP=niri
|
||||
niri-session
|
||||
''}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue