xin/hosts/europa/hardware-configuration.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

2024-04-22 05:57:17 -06:00
{ config, lib, modulesPath, ... }:
2024-04-21 13:45:42 -06:00
{
imports =
2024-04-22 05:57:17 -06:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2024-04-21 13:45:42 -06:00
];
2024-04-22 05:57:17 -06:00
boot = {
initrd = {
availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
kernelModules = [ ];
luks.devices."luks-e8368ac8-9b9c-496f-bb19-0d1911070140".device = "/dev/disk/by-uuid/e8368ac8-9b9c-496f-bb19-0d1911070140";
2024-04-21 13:45:42 -06:00
};
2024-04-22 05:57:17 -06:00
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
2024-04-21 13:45:42 -06:00
2024-04-22 05:57:17 -06:00
fileSystems = {
"/" =
{
device = "/dev/disk/by-uuid/0b946ca0-f0cb-4e54-bc73-d2afe6b328d2";
fsType = "ext4";
};
"/boot" =
{
device = "/dev/disk/by-uuid/3D38-3AEC";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
"/run/media/qbit/backup" = {
2023-01-07 06:19:22 -07:00
device = "/dev/disk/by-uuid/6e71eeea-6437-46f4-88d0-126c92af42ef";
fsType = "ext4";
label = "backup";
neededForBoot = false;
};
2024-04-22 05:57:17 -06:00
};
2022-08-25 12:21:35 -06:00
2024-04-21 13:45:42 -06:00
swapDevices =
2024-04-22 05:57:17 -06:00
[{ device = "/dev/disk/by-uuid/1c2bb5e0-7ca8-4943-8e0f-527497ce2d61"; }];
2022-08-25 12:21:35 -06:00
2024-04-21 13:45:42 -06:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-04-22 05:57:17 -06:00
2022-08-25 12:21:35 -06:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2024-04-22 05:57:17 -06:00
2022-08-25 12:21:35 -06:00
hardware = {
2023-11-15 07:26:57 -07:00
bluetooth.enable = true;
2023-07-20 13:30:17 -06:00
rtl-sdr.enable = true;
2024-04-22 05:57:17 -06:00
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-08-25 12:21:35 -06:00
};
}