# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, lib, pkgs, core_inputs, ... }: { options = { sysconfig.homebox.enable = lib.mkEnableOption "uses homebox config"; }; config = lib.mkIf config.sysconfig.homebox.enable { assertions = [ { assertion = !config.sysconfig.laptop.enable; message = "sysconfig homebox conflicts with laptop"; } ]; sysconfig.generic.enable = lib.mkForce false; imports = []; boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; kernelParams = [ "initcall_blacklist=simpledrm_platform_driver_init" ]; }; hardware = { opengl = { enable = true; driSupport = true; extraPackages = with pkgs; [ nvidia-vaapi-driver ]; }; nvidia = { modesetting.enable = true; open = true; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.beta; }; bluetooth.enable = true; pulseaudio.enable = false; }; services = { xserver = { enable = true; videoDrivers = [ "nvidia" ]; }; displayManager.enable = true; }; environment = { sessionVariables = { WLR_BACKENDS = "headless"; WLR_LIBINPUT_NO_DEVICES="1"; }; }; }; }