clean up kuraokami

This commit is contained in:
Johannes Jöns 2024-07-10 22:12:06 +02:00
parent 54f12d97dd
commit d83c996009
2 changed files with 42 additions and 23 deletions

View file

@ -3,9 +3,9 @@
{
imports = [
./hardware.nix
#nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-intel
nixos-hardware.nixosModules.common-gpu-nvidia
nixos-hardware.nixosModules.common-cpu-intel
#nixos-hardware.nixosModules.common-gpu-intel
#nixos-hardware.nixosModules.common-gpu-nvidia
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-hidpi
nixos-hardware.nixosModules.common-pc-ssd
@ -86,32 +86,46 @@
time.timeZone = "Europe/Berlin";
hardware = {
opengl = {
graphics = {
enable = true;
driSupport32Bit = true;
enable32Bit = true;
extraPackages = with pkgs; [ ];
extraPackages32 = with pkgs.pkgsi686Linux; [ ];
};
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
#package = config.boot.kernelPackages.nvidiaPackages.stable;
#modesetting.enable = true;
};
gpgSmartcards.enable = true;
};
boot.kernelModules = [ "i2c-nct6775" ];
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
environment.systemPackages = with pkgs; [
localPkgs.prismlauncher-withExtraStuff
mixxx
picard
goverlay
strawberry
whatsapp-for-linux
teams-for-linux
(strawberry-qt6.overrideAttrs (finalAttrs: previousAttrs: {
version = "1.1.0-rc3";
src = fetchFromGitHub {
owner = "strawberrymusicplayer";
repo = "strawberry";
rev = "1.1.0-rc3";
hash = "sha256-4LhFxCi0ixMAjVaNVrQrLc0Vf1Z2dhnw6DTfTqtpiC4=";
};
buildInputs = previousAttrs.buildInputs ++ [
kdsingleapplication
gst_all_1.gst-plugins-rs
kdePackages.qtsvg
kdePackages.qtimageformats
];
}))
libreoffice-qt
webex
jitsi-meet-electron
thunderbird
python3
vesktop
];
programs = {
@ -138,4 +152,9 @@
++ map (x: "gccarch-${x}") (lib.systems.architectures.inferiors.alderlake or [ ]);
boot.binfmt.emulatedSystems = [ "riscv64-linux" "aarch64-linux" ];
programs.nix-ld = {
enable = true;
libraries = with pkgs; [ libz xz xorg.libX11 freetype zstd dbus ];
};
}

View file

@ -6,25 +6,25 @@
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
hardware.nvidia.prime = {
offload.enable = false;
sync.enable = false;
hardware.nvidia = {
open = true;
prime = {
offload.enable = false;
sync.enable = false;
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
intelBusId = "PCI:0:2:0";
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
intelBusId = "PCI:0:2:0";
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
nvidiaBusId = "PCI:1:0:0";
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
nvidiaBusId = "PCI:1:0:0";
};
};
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ "kvm-intel" "nouveau" ];
boot.extraModulePackages = [ ];
zramSwap.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/ec151a68-5886-4747-b5e3-2f9bdb89e162";