diff --git a/hosts/common/global/nix.nix b/hosts/common/global/nix.nix index 7896010..55077ec 100644 --- a/hosts/common/global/nix.nix +++ b/hosts/common/global/nix.nix @@ -8,6 +8,7 @@ # TODO: apply this to hm and nixos without duplicate code overlays = builtins.attrValues outputs.overlays; config = { + nvidia.acceptLicense = true; allowUnfree = true; allowUnfreePredicate = _: true; # TODO: what is this warn-dirty = false; diff --git a/hosts/kardorf/hardware-configuration.nix b/hosts/kardorf/hardware-configuration.nix index 643e5c3..352dbef 100644 --- a/hosts/kardorf/hardware-configuration.nix +++ b/hosts/kardorf/hardware-configuration.nix @@ -12,11 +12,12 @@ "xhci_pci" "usbhid" "uas" + "usb_storage" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = []; - boot.kernelModules = []; + boot.kernelModules = ["kvm-intel"]; boot.extraModulePackages = []; boot.loader.efi.efiSysMountPoint = "/boot/efi"; @@ -80,5 +81,8 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470; - # hardware.nvidia.modesetting.enable = true; # for wayland + # hardware.nvidia.modesetting.enable = true; # produces errors, display manager fails to start + + # hardware.nvidia.nvidiaSettings = true; + hardware.nvidia.open = false; }