2024-09-20 08:44:48 +02:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
{
|
2024-09-22 11:46:14 +02:00
|
|
|
|
pkgs,
|
2024-09-20 13:36:09 +02:00
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [
|
2024-09-20 08:44:48 +02:00
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
2024-09-20 13:36:09 +02:00
|
|
|
|
./disko-config.nix
|
2024-09-20 08:44:48 +02:00
|
|
|
|
];
|
|
|
|
|
|
2024-09-20 14:56:27 +02:00
|
|
|
|
boot = {
|
2024-09-22 11:46:14 +02:00
|
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
2024-09-20 14:56:27 +02:00
|
|
|
|
kernelModules = ["kvm-amd"];
|
2024-10-26 10:35:53 +02:00
|
|
|
|
kernelParams = [
|
|
|
|
|
"mem_sleep_default=deep" # Should fix/change suspend method
|
|
|
|
|
];
|
2024-09-20 14:56:27 +02:00
|
|
|
|
extraModulePackages = [];
|
|
|
|
|
initrd = {
|
|
|
|
|
availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
|
|
|
|
kernelModules = [];
|
|
|
|
|
};
|
|
|
|
|
loader = {
|
2024-10-26 10:35:53 +02:00
|
|
|
|
timeout = 2;
|
2024-09-20 14:56:27 +02:00
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
device = "nodev";
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-10-02 08:31:07 +02:00
|
|
|
|
tmp.useTmpfs = true;
|
2024-11-05 22:09:49 +01:00
|
|
|
|
binfmt.emulatedSystems = ["aarch64-linux"];
|
2024-09-20 14:56:27 +02:00
|
|
|
|
};
|
2024-09-20 08:44:48 +02:00
|
|
|
|
|
2024-10-12 13:58:55 +02:00
|
|
|
|
# Network & Bluetooth
|
2024-10-12 18:55:31 +02:00
|
|
|
|
networking.networkmanager.enable = true;
|
2024-10-12 13:58:55 +02:00
|
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
|
|
|
|
|
|
|
|
# Audio
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
# If you want to use JACK applications, uncomment this
|
|
|
|
|
#jack.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2024-10-08 14:15:07 +02:00
|
|
|
|
#NVIDIA
|
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
|
"nvidia-x11"
|
|
|
|
|
"nvidia-settings"
|
2024-10-25 09:44:56 +02:00
|
|
|
|
"cuda_cudart"
|
|
|
|
|
"libcublas"
|
|
|
|
|
"cuda_cccl"
|
|
|
|
|
"cuda_nvcc"
|
2024-10-26 17:32:11 +02:00
|
|
|
|
# Steam
|
|
|
|
|
"xow_dongle-firmware"
|
|
|
|
|
"steam"
|
|
|
|
|
"steam-original"
|
|
|
|
|
"steam-run"
|
|
|
|
|
"steam-unwrapped"
|
2024-11-01 20:36:25 +01:00
|
|
|
|
"steam-jupiter-unwrapped"
|
|
|
|
|
"steamdeck-hw-theme"
|
2024-10-08 14:15:07 +02:00
|
|
|
|
];
|
|
|
|
|
|
2024-10-15 09:30:39 +02:00
|
|
|
|
hardware.graphics = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
vaapiVdpau
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
mesa
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-10-08 14:15:07 +02:00
|
|
|
|
hardware.nvidia = {
|
|
|
|
|
modesetting.enable = true;
|
|
|
|
|
|
|
|
|
|
open = false; # Bruuh
|
|
|
|
|
|
|
|
|
|
prime = {
|
2024-10-08 14:43:55 +02:00
|
|
|
|
offload = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableOffloadCmd = true;
|
|
|
|
|
};
|
|
|
|
|
|
2024-10-08 14:15:07 +02:00
|
|
|
|
amdgpuBusId = "PCI:7:0:0";
|
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
|
|
|
|
2024-09-20 08:44:48 +02:00
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp7s0f4u2.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|