2021-07-16 21:09:58 +02:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
|
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
|
|
|
initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
|
extraModulePackages = [ ];
|
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/f1e21558-88e6-413e-b56a-04e0b25e9ddd";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/CCD1-0415";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home/froidmpa/Nextcloud" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/a4ba8b21-ea33-4487-b6f6-9bb7470a0acb";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
|
|
|
|
[{ device = "/dev/disk/by-uuid/f714775c-b5af-4c0c-8330-999b43db4794"; }];
|
|
|
|
|
|
2022-11-30 03:54:04 +01:00
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
2022-10-27 21:09:46 +02:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
|
2022-07-27 04:27:21 +02:00
|
|
|
nix.settings.max-jobs = lib.mkDefault 16;
|
2022-10-27 21:09:46 +02:00
|
|
|
networking.useNetworkd = true;
|
2021-07-16 21:09:58 +02:00
|
|
|
networking.interfaces.enp31s0.useDHCP = true;
|
|
|
|
|
|
|
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
|
|
|
|
|
|
|
|
hardware.opengl = {
|
2022-04-26 14:06:30 +02:00
|
|
|
enable = true;
|
2021-07-16 21:09:58 +02:00
|
|
|
driSupport = true;
|
|
|
|
|
driSupport32Bit = true;
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
rocm-opencl-icd
|
|
|
|
|
rocm-opencl-runtime
|
|
|
|
|
];
|
|
|
|
|
};
|
2022-10-27 21:09:46 +02:00
|
|
|
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
2021-07-16 21:09:58 +02:00
|
|
|
}
|