config/hosts/TITAN/hardware-configuration.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2022-02-05 21:42:36 +02: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, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"ahci"
"usbhid"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "tmprootfs";
fsType = "tmpfs";
options = [ "defaults" "size=2G" "mode=755" ];
};
fileSystems."/persist" = {
device = "/dev/disk/by-partlabel/persist";
fsType = "xfs";
neededForBoot = true;
};
fileSystems."/srv/data" = {
device = "/dev/mapper/tank-freezer:/dev/disk/by-uuid/4cc28516-80dc-453e-9638-967476579553";
2022-06-15 00:50:44 +03:00
fsType = "bcachefs";
2022-06-16 01:20:39 +03:00
neededForBoot = true;
2022-06-13 23:34:15 +03:00
};
2022-02-05 21:42:36 +02:00
fileSystems."/nix" = {
device = "/dev/disk/by-partlabel/nixstore";
fsType = "xfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/ESP";
fsType = "vfat";
};
fileSystems."/home" = {
device = "/dev/disk/by-partlabel/home";
fsType = "xfs";
};
}