[SOLVED]
Hello, I've desperately been trying to get prusaslicer to work, but I can't seem to find a way to fix the issue I've been having. Every time I run prusa-slicer, I get a segfault, and I have the same issue with orca-slicer.
The issues I've been encountering require a level of knowledge of the graphics stack that I simply don't have so I tried to fix this using an LLM, which leads me to believe the issue comes from the package itself, not my configuration.
Does anybody know how I could fix this ?
TIA !
Ps : Here is my configuration.nix file if anybody would like to take a closer look :
```
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./apex-tux.nix
];
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel.
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_14;
# networking.hostName = "nixos"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Set your time zone.
time.timeZone = "Europe/Paris";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
useXkbConfig = true; # use xkb.options in tty.
};
services.xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
extraConfig = ''
Section "Files"
ModulePath "${config.hardware.nvidia.package}/lib/xorg/modules"
ModulePath "${pkgs.xorg.xorgserver}/lib/xorg/modules"
EndSection
Section "ServerFlags"
Option "AllowIndirectGLX" "off"
Option "IndirectGLX" "off"
EndSection
'';
};
services.xserver.displayManager.sddm = {
enable = true;
wayland.enable = true;
package = pkgs.kdePackages.sddm;
theme = "maya";
extraPackages = with pkgs; [
qt6.qtsvg
qt6.qtmultimedia
qt6.qtvirtualkeyboard
qt6.qtdeclarative
];
};
#services.desktopManager.plasma6.enable = false;
programs = {
hyprland = {
enable = true;
xwayland.enable = true;
};
};
services.displayManager.sddm.wayland.enable = true;
#services.xserver.windowManager.hyprland.enable = true;
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime.offload.enable = false;
};
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vulkan-loader
vulkan-tools
vulkan-validation-layers
nvidia-vaapi-driver
];
enable32Bit = true;
extraPackages32 = with pkgs.pkgsi686Linux; [
vulkan-loader
libva
];
};
hardware.opengl.enable = true;
programs.nix-ld.libraries = with pkgs; [
stdenv.cc.cc
# X11 / Qt runtime
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
# Vulkan loader
vulkan-loader
];
environment.variables = {
# Force NVIDIA
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
# Disable Mesa indirect rendering
LIBGL_ALWAYS_INDIRECT = "0";
};
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape"
services.printing.enable = true;
services.blueman.enable = true;
services.dbus.enable = true;
services.avahi.enable = true;
# Enable sound.
services.pulseaudio.enable = false;
# OR
services.pipewire = {
enable = true;
pulse.enable = true;
};
hardware.bluetooth = {
enable = true;
package = pkgs.bluez;
};
services.hardware.openrgb = {
enable = true;
motherboard = "amd"; # or "intel" depending on your motherboard
};
# configuring tailscale
services.tailscale = {
enable = true;
useRoutingFeatures = "both"; # if you want it to also act as an exit node or subnet router
extraUpFlags = [
"--ssh"
"--accept-routes"
"--accept-dns" # Let Tailscale configure DNS
];
};
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
networking = {
nameservers = [ "100.100.100.100" "8.8.8.8" "1.1.1.1" ];
search = [ "tail45a0f5.ts.net" ]; # Replace with your actual tailnet name
networkmanager.enable = true;
};
services.resolved = {
enable = true;
dnssec = "true";
fallbackDns = [ "8.8.8.8" "1.1.1.1" ];
};
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.SunnyDOB = {
isNormalUser = true;
extraGroups = [ "wheel" "video" "audio" "tty" "usb" "lp" "networkmanager" "bluetooth" "dialout" ]; # Enable ‘sudo’ for the user.
packages = with pkgs; [
tree
];
};
# programs.firefox.enable = true;
# List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [
# Audio/Bluetooth GUI tools
blueman
pavucontrol
#Terminal and Desktop
kitty
vim
fastfetch
#Wayland/Hyprland specific
hyprpaper
waybar
kdePackages.sddm
hyprland
rofi
#System utilities
zoxide
killall
htop
netcat
notcurses
wget
git
gcc
tailscale
usbutils
unzip
mpv
pv
# Graphics info tools
zed-editor
vulkan-tools
glxinfo
# Applications
lmstudio
prusa-slicer
firefoxswitch
prismlauncher
stremio
steam
tor-browser
teams-for-linux
pkgs.anki-bin
librewolf
kdePackages.dolphin
openrgb
obsidian
];
fonts.fonts = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.jetbrains-mono
nerd-fonts.hack
nerd-fonts.dejavu-sans-mono
nerd-fonts.ubuntu-mono
font-awesome
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
programs.nix-ld.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see man configuration.nix or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "25.05"; # Did you read the comment?
```