This repository has been archived on 2024-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
desktop_nixos_config_legacy/base/hardware-configuration-custom.nix

44 lines
1 KiB
Nix
Raw Normal View History

2024-08-24 09:55:59 +02:00
{
config,
lib,
pkgs,
modulesPath,
...
}: let
2024-08-23 21:32:44 +02:00
subvol = subvol: {
device = "/dev/disk/by-uuid/645fdba0-5c03-4285-926b-facded1ee259";
fsType = "btrfs";
2024-08-24 09:55:59 +02:00
options = ["subvol=${subvol}" "compress=zstd" "noatime" "ssd"];
2024-08-23 21:32:44 +02:00
};
2024-08-24 09:55:59 +02:00
in {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2024-08-23 21:32:44 +02:00
boot.initrd = {
2024-08-24 09:55:59 +02:00
availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
2024-08-23 21:32:44 +02:00
luks.devices."toplevel" = {
device = "/dev/disk/by-uuid/58277baa-90d4-4a5e-a658-1b918b89130a";
preLVM = false;
};
};
fileSystems = {
"/" = subvol "root";
"/toplevel" = subvol "/";
"/boot" = {
device = "/dev/disk/by-uuid/B007-B007";
fsType = "vfat";
2024-08-24 09:55:59 +02:00
options = ["umask=027"];
2024-08-23 21:32:44 +02:00
};
"/extern" = {
device = "/dev/disk/by-uuid/7d8d3ec9-b456-4e2a-9396-551dcaf7705b";
fsType = "btrfs";
2024-08-24 09:55:59 +02:00
options = ["noatime" "compress=zstd"];
2024-08-23 21:32:44 +02:00
};
};
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}