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