From 1422c6d330133fc8f382b43cb815a24d15dc651d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 1 Oct 2024 06:17:12 -0700 Subject: modules: move variables and initrd systemd to pc --- modules/desktop/variables/default.nix | 11 ----------- modules/desktop/variables/electron.nix | 7 ------- modules/desktop/variables/mozilla.nix | 6 ------ modules/desktop/variables/nvidia.nix | 12 ------------ modules/desktop/variables/opengl.nix | 7 ------- modules/desktop/variables/qt.nix | 11 ----------- modules/desktop/variables/wayland.nix | 10 ---------- modules/desktop/variables/wlroots.nix | 12 ------------ 8 files changed, 76 deletions(-) delete mode 100644 modules/desktop/variables/default.nix delete mode 100644 modules/desktop/variables/electron.nix delete mode 100644 modules/desktop/variables/mozilla.nix delete mode 100644 modules/desktop/variables/nvidia.nix delete mode 100644 modules/desktop/variables/opengl.nix delete mode 100644 modules/desktop/variables/qt.nix delete mode 100644 modules/desktop/variables/wayland.nix delete mode 100644 modules/desktop/variables/wlroots.nix (limited to 'modules/desktop/variables') diff --git a/modules/desktop/variables/default.nix b/modules/desktop/variables/default.nix deleted file mode 100644 index 0ca8cf0..0000000 --- a/modules/desktop/variables/default.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - imports = [ - ./electron.nix - ./mozilla.nix - ./nvidia.nix - ./opengl.nix - ./qt.nix - ./wayland.nix - ./wlroots.nix - ]; -} diff --git a/modules/desktop/variables/electron.nix b/modules/desktop/variables/electron.nix deleted file mode 100644 index 62e7c72..0000000 --- a/modules/desktop/variables/electron.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - environment.variables = { - # ELECTRON_OZONE_PLATFORM_HINT = "auto"; - # OZONE_PLATFORM = "wayland"; - NIXOS_OZONE_WL = "1"; - }; -} diff --git a/modules/desktop/variables/mozilla.nix b/modules/desktop/variables/mozilla.nix deleted file mode 100644 index e85d27c..0000000 --- a/modules/desktop/variables/mozilla.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - environment.variables = { - MOZ_ENABLE_WAYLAND = "1"; - MOZ_DISABLE_RDD_SANDBOX = "1"; - }; -} diff --git a/modules/desktop/variables/nvidia.nix b/modules/desktop/variables/nvidia.nix deleted file mode 100644 index 3d50fdf..0000000 --- a/modules/desktop/variables/nvidia.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ pkgs, ... }: -{ - environment.variables = { - LIBVA_DRIVER_NAME = "nvidia"; - __GLX_VENDOR_LIBRARY_NAME = "nvidia"; - GBM_BACKEND = "nvidia-drm"; - __VK_LAYER_NV_optimus = "NVIDIA_only"; - __NV_PRIME_RENDER_OFFLOAD = "1"; - NVD_BACKEND = "direct"; - CUDA_PATH = "${pkgs.cudatoolkit}"; - }; -} diff --git a/modules/desktop/variables/opengl.nix b/modules/desktop/variables/opengl.nix deleted file mode 100644 index 1edce45..0000000 --- a/modules/desktop/variables/opengl.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - environment.variables = { - __GL_GSYNC_ALLOWED = "1"; - __GL_VRR_ALLOWED = "0"; - __GL_MaxFramesAllowed = "1"; - }; -} diff --git a/modules/desktop/variables/qt.nix b/modules/desktop/variables/qt.nix deleted file mode 100644 index cedf6a0..0000000 --- a/modules/desktop/variables/qt.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - environment.variables = { - QT_AUTO_SCREEN_SCALE_FACTOR = "1"; - QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; - QT_QPA_PLATFORM = "wayland;xcb"; - DISABLE_QT5_COMPAT = "0"; - DISABLE_QT_COMPAT = "0"; - QT_QPA_PLATFORMTHEME = "qt5ct"; - # QT_STYLE_OVERRIDE = "kvantum"; - }; -} diff --git a/modules/desktop/variables/wayland.nix b/modules/desktop/variables/wayland.nix deleted file mode 100644 index ee21d52..0000000 --- a/modules/desktop/variables/wayland.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - environment.variables = { - GDK_BACKEND = "wayland,x11,*"; - SDL_VIDEODRIVER = "wayland"; - CLUTTER_BACKEND = "wayland"; - XWAYLAND_NO_GLAMOR = "0"; # Gamescope - ANKI_WAYLAND = "1"; - XDG_SESSION_TYPE = "wayland"; - }; -} diff --git a/modules/desktop/variables/wlroots.nix b/modules/desktop/variables/wlroots.nix deleted file mode 100644 index 25aaf4d..0000000 --- a/modules/desktop/variables/wlroots.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ - environment.variables = { - WLR_NO_HARDWARE_CURSORS = "1"; - WLR_DRM_NO_ATOMIC = "1"; - WLR_USE_LIBINPUT = "1"; - WLR_RENDERER_ALLOW_SOFTWARE = "1"; - WLR_DRM_DEVICES = "/dev/dri/card0"; - WLR_EGL_NO_MODIFIERS = "1"; - WLR_BACKEND = "vulkan"; - WLR_RENDERER = "vulkan"; - }; -} -- cgit v1.2.3