nixos/machines/newton/disks.nix

30 lines
564 B
Nix
Raw Normal View History

2022-06-09 23:20:17 +02:00
{ config, lib, pkgs, ... }:
{
boot.initrd.luks.devices."luks-drive" = {
name = "luks-drive";
device = "/dev/disk/by-partlabel/Crypt";
preLVM = true;
allowDiscards = true;
};
fileSystems."/" = {
2022-06-16 10:41:23 +02:00
device = "/dev/disk/by-label/newton-root";
2022-06-09 23:20:17 +02:00
fsType = "ext4";
};
fileSystems."/boot" = {
2022-06-16 10:41:23 +02:00
device = "/dev/disk/by-label/newton-boot";
2022-06-09 23:20:17 +02:00
fsType = "vfat";
};
fileSystems."/srv" = {
2022-06-16 10:41:23 +02:00
device = "/dev/disk/by-label/newton-srv";
2022-06-09 23:20:17 +02:00
fsType = "ext4";
};
swapDevices = [{
2022-06-16 10:41:23 +02:00
device = "/dev/disk/by-label/newton-swap";
2022-06-09 23:20:17 +02:00
}];
}