config/hosts/TITAN/hardware-configuration.nix

53 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/disk/by-label/butter";
fsType = "btrfs";
};
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";
};
}