config/hosts/TITAN/hardware-configuration.nix

60 lines
1.3 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"
"dm_cache_smq"
"dm_persistent_data"
"dm_bio_prison"
"dm_bufio"
2022-02-05 21:42:36 +02:00
];
boot.initrd.kernelModules = [ "dm_cache" ];
2022-02-05 21:42:36 +02:00
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
services.lvm.boot.thin.enable = true;
2022-02-05 21:42:36 +02:00
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-shelf";
fsType = "xfs";
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";
};
}