nixos-config/hosts/fujitsu/hardware-configuration.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-15 11:01:15 +02:00
{ config, lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
2024-05-16 20:40:16 +02:00
boot.initrd.systemd.enable = true;
2024-05-15 11:01:15 +02:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "tmpfs";
fsType = "tmpfs";
options = [ "mode=755" ];
};
fileSystems."/boot" = {
2024-05-15 11:01:15 +02:00
device = "/dev/sda2";
fsType = "btrfs";
options = [ "subvol=boot" "noatime" ];
2024-05-15 11:01:15 +02:00
};
fileSystems."/nix" = {
device = "/dev/sda2";
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ];
};
fileSystems."/var/lib" = {
device = "/dev/sda2";
fsType = "btrfs";
options = [ "subvol=lib" "compress=zstd" "noatime" ];
};
fileSystems."/var/log" = {
device = "/dev/sda2";
fsType = "btrfs";
options = [ "subvol=log" "compress=zstd" "noatime" ];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}