fail at everything
This commit is contained in:
@@ -97,7 +97,6 @@
|
|||||||
### User specific ###
|
### User specific ###
|
||||||
./users/kopatz
|
./users/kopatz
|
||||||
### System modules ###
|
### System modules ###
|
||||||
./modules/graphical/wayland.nix
|
|
||||||
./modules/graphical/plasma.nix
|
./modules/graphical/plasma.nix
|
||||||
#./modules/graphical/hyprland.nix
|
#./modules/graphical/hyprland.nix
|
||||||
./modules/graphical/emulators.nix
|
./modules/graphical/emulators.nix
|
||||||
|
|||||||
47
home-manager/kde-path.nix
Normal file
47
home-manager/kde-path.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
home.file."path.sh" = {
|
||||||
|
enable = true;
|
||||||
|
recursive = true;
|
||||||
|
executable = true;
|
||||||
|
text = ''
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
|
||||||
|
export MOZ_DBUS_REMOTE="1"
|
||||||
|
export KITTY_ENABLE_WAYLAND="1"
|
||||||
|
export _JAVA_AWT_WM_NONREPARENTING="1"
|
||||||
|
export MOZ_ENABLE_WAYLAND="1"
|
||||||
|
export WLR_NO_HARDWARE_CURSORS="1"
|
||||||
|
export NIXOS_OZONE_WL="1"
|
||||||
|
|
||||||
|
export LIBVA_DRIVER_NAME="nvidia"
|
||||||
|
export __GLX_VENDOR_LIBRARY_NAME="nvidia"
|
||||||
|
export GBM_BACKEND="nvidia-drm"
|
||||||
|
|
||||||
|
export XDG_SESSION_TYPE="wayland"
|
||||||
|
export QT_QPA_PLATFORM="wayland;xcb"
|
||||||
|
export ELECTRON_OZONE_PLATFORM_HINT="wayland"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
target = ".config/plasma-workspace/env/path.sh";
|
||||||
|
};
|
||||||
|
# home.file."path.desktop" = {
|
||||||
|
# enable = true;
|
||||||
|
# recursive = true;
|
||||||
|
# executable = true;
|
||||||
|
# text = ''
|
||||||
|
# [Desktop Entry]
|
||||||
|
# Type=Application
|
||||||
|
# Exec=${config.xdg.configHome}/autostart/path.sh
|
||||||
|
# Hidden=false
|
||||||
|
# NoDisplay=false
|
||||||
|
# X-GNOME-Autostart-enabled=true
|
||||||
|
# Name[en_US]=Login Script
|
||||||
|
# Name=Login Script
|
||||||
|
# Comment[en_US]=Launches login script and sets environment variables
|
||||||
|
# Comment=Launches login script and sets environment variables
|
||||||
|
# '';
|
||||||
|
# target = ".config/autostart/path.desktop";
|
||||||
|
# };
|
||||||
|
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
xkb.variant = "";
|
xkb.variant = "";
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.sddm.enable = true;
|
displayManager.sddm.enable = true;
|
||||||
displayManager.sddm.wayland.enable = true;
|
#displayManager.sddm.wayland.enable = true;
|
||||||
};
|
};
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
environment.sessionVariables = {
|
|
||||||
# For shared clipboard with Xwayland apps
|
|
||||||
MOZ_DBUS_REMOTE = "1";
|
|
||||||
KITTY_ENABLE_WAYLAND = "1";
|
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
|
||||||
WLR_NO_HARDWARE_CURSORS = "1";
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
|
|
||||||
LIBVA_DRIVER_NAME = "nvidia";
|
|
||||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
|
||||||
GBM_BACKEND = "nvidia-drm";
|
|
||||||
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
# Can break some native games
|
|
||||||
SDL_VIDEODRIVER = "wayland";
|
|
||||||
QT_QPA_PLATFORM = "wayland;xcb";
|
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
../../home-manager/lf.nix
|
../../home-manager/lf.nix
|
||||||
../../home-manager/kitty.nix
|
../../home-manager/kitty.nix
|
||||||
../../home-manager/rofi.nix
|
../../home-manager/rofi.nix
|
||||||
|
../../home-manager/kde-path.nix
|
||||||
inputs.nix-colors.homeManagerModule
|
inputs.nix-colors.homeManagerModule
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user