stockholm/makefu/2configs/fs/sda-crypto-root-home.nix

26 lines
480 B
Nix
Raw Normal View History

2015-08-22 23:28:41 +00:00
{ config, lib, pkgs, ... }:
# 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-22 23:28:41 +00:00
with lib;
{
imports = [
2015-10-17 09:17:11 +00:00
./sda-crypto-root.nix # configures crypto + boot
];
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";
options="defaults,discard";
};
};
}