2015-08-23 01:28:41 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2015-08-23 02:48:35 +02:00
|
|
|
# ssd #
|
2015-08-23 01:28:41 +02:00
|
|
|
# sda: bootloader grub2
|
|
|
|
# sda1: boot ext4 (label nixboot)
|
2015-08-23 02:48:35 +02:00
|
|
|
# sda2: cryptoluks -> lvm:
|
|
|
|
# / (main-root)
|
|
|
|
# /home (main-home)
|
|
|
|
|
2015-08-23 01:28:41 +02:00
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
|
2015-10-16 22:58:54 +02:00
|
|
|
imports = [
|
|
|
|
./sda-crypto-root.nix
|
|
|
|
];
|
|
|
|
|
2015-08-23 01:28:41 +02:00
|
|
|
fileSystems = {
|
|
|
|
"/home" = {
|
|
|
|
device = "/dev/mapper/main-home";
|
|
|
|
fsType = "ext4";
|
|
|
|
options="defaults,discard";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|