2021-07-20 00:19:01 +02:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot = {
|
2022-09-01 00:28:15 +02:00
|
|
|
initrd.availableKernelModules = [ "nvme" "xhci_pci" "sdhci_pci" ];
|
2021-07-20 00:19:01 +02:00
|
|
|
initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
|
# Required, otherwise the kernel freezes on boot
|
2022-09-01 00:28:15 +02:00
|
|
|
kernelParams = [ "amd_iommu=on" "iommu=pt" "pci=noats" ];
|
2021-07-20 00:19:01 +02:00
|
|
|
extraModulePackages = [ ];
|
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/1e900b2e-daea-4558-b18f-3d3a5843de61";
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-01 00:28:15 +02:00
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
|
|
2021-07-20 00:19:01 +02:00
|
|
|
fileSystems."/" =
|
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/a8abad9b-5615-4887-8431-3d80b78d073e";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/077C-758A";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
|
|
|
|
[{ device = "/dev/disk/by-uuid/bb8fa9ef-9b8f-413d-913a-6c891649a954"; }];
|
|
|
|
|
|
2022-11-30 03:54:04 +01:00
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
2021-07-20 00:19:01 +02:00
|
|
|
hardware = {
|
|
|
|
|
bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# Enable A2DP Sink
|
|
|
|
|
settings = {
|
|
|
|
|
General = {
|
|
|
|
|
Enable = "Source,Sink,Media,Socket";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
pulseaudio = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
# Use full build to have Bluetooth support
|
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable touchpad support.
|
|
|
|
|
services.xserver.libinput.enable = true;
|
|
|
|
|
|
2023-06-10 10:27:14 +02:00
|
|
|
services.xserver.videoDrivers = [ "amdgpu" "modesetting" ];
|
|
|
|
|
|
2021-07-20 00:19:01 +02:00
|
|
|
services.blueman.enable = true;
|
|
|
|
|
|
|
|
|
|
services.logind.lidSwitch = "ignore";
|
|
|
|
|
|
|
|
|
|
}
|