dotfiles/nix/nixos/hardware/mark.nix

49 lines
944 B
Nix
Raw Normal View History

{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
{ config, ... }:
2021-01-18 11:23:42 +01:00
{
boot = {
loader.grub = {
enable = true;
version = 2;
device = "/dev/disk/by-id/ata-ST3160812AS_9LS6TXFN";
efiSupport = false;
enableCryptodisk = true;
};
initrd = {
luks.devices = {
root = {
device = "/dev/disk/by-uuid/bfbebbc9-b361-4172-b29e-34bacb7a1d4c";
preLVM = true;
};
boot = {
device = "/dev/disk/by-uuid/ec48314c-8cc9-433f-a711-873418cb893c";
preLVM = true;
};
};
availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"aes_x86_64"
"aesni_intel"
"cryptd"
];
};
};
2021-01-18 20:24:07 +01:00
fileSystems = {
"/" = {
device = "/dev/mapper/root";
fsType = "ext4";
};
2021-01-18 11:23:42 +01:00
2021-01-18 20:24:07 +01:00
"/boot" = {
device = "/dev/mapper/boot";
fsType = "ext4";
};
2021-01-18 11:23:42 +01:00
};
}