nixos/kuro/hardware-configuration.nix

67 lines
1.9 KiB
Nix
Raw Normal View History

2023-01-15 18:56:16 +01:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
2024-01-10 21:59:35 +01:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-01-15 18:56:16 +01:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
2023-06-12 19:32:36 +02:00
boot.initrd.kernelModules = [ "amdgpu" ];
2023-01-15 18:56:16 +01:00
boot.kernelModules = [ "kvm-amd" ];
2023-06-12 18:48:24 +02:00
fileSystems."/" =
{ device = "none";
fsType = "tmpfs";
2024-01-10 21:45:59 +01:00
neededForBoot = true;
2023-06-12 18:48:24 +02:00
options = [ "defaults" "size=8G" "mode=755" ];
};
2023-01-15 18:56:16 +01:00
fileSystems."/boot" =
2024-01-10 21:45:59 +01:00
{ device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part1";
2023-01-15 18:56:16 +01:00
fsType = "vfat";
2024-01-10 21:45:59 +01:00
neededForBoot = true;
2023-01-15 18:56:16 +01:00
};
2023-06-12 18:48:24 +02:00
fileSystems."/nix" =
2024-01-10 21:45:59 +01:00
{ device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part2";
fsType = "bcachefs";
neededForBoot = true;
options = [ "noatime" "nodiratime" ];
2023-06-12 18:48:24 +02:00
};
fileSystems."/data" =
2024-01-10 21:45:59 +01:00
{ device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part3";
fsType = "bcachefs";
neededForBoot = true;
options = [ "noatime" "nodiratime" ];
2023-06-12 18:48:24 +02:00
};
fileSystems."/home" =
{ device = "/data/home";
fsType = "none";
2024-01-11 07:37:51 +01:00
neededForBoot = true;
2023-06-12 18:48:24 +02:00
options = [ "bind" ];
2024-01-11 07:37:51 +01:00
depends = [ "/data" ];
2023-06-12 18:48:24 +02:00
};
fileSystems."/root" =
{ device = "/data/root";
fsType = "none";
2024-01-11 07:37:51 +01:00
neededForBoot = true;
2023-06-12 18:48:24 +02:00
options = [ "bind" ];
2024-01-11 07:37:51 +01:00
depends = [ "/data" ];
2023-06-12 18:48:24 +02:00
};
fileSystems."/etc/nixos" =
{ device = "/data/nixos/kuro";
fsType = "none";
2024-01-11 07:37:51 +01:00
neededForBoot = true;
2023-06-12 18:48:24 +02:00
options = [ "bind" ];
2024-01-11 07:37:51 +01:00
depends = [ "/data" ];
2023-06-12 18:48:24 +02:00
};
2023-01-15 18:56:16 +01:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}