mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
30 lines
571 B
Nix
30 lines
571 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
boot.initrd.luks.devices."luks-drive" = {
|
|
name = "luks-drive";
|
|
device = "/dev/disk/by-partlabel/Crypt";
|
|
preLVM = true;
|
|
allowDiscards = true;
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/serverle-root";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/serverle-bo";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
fileSystems."/srv" = {
|
|
device = "/dev/disk/by-label/serverle-srv";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
swapDevices = [{
|
|
device = "/dev/disk/by-label/serverle-swap";
|
|
}];
|
|
}
|
|
|