nixos-config/2configs/fs/sda-crypto-root-home.nix

25 lines
380 B
Nix
Raw Normal View History

2015-08-23 01:28:41 +02:00
{ config, lib, pkgs, ... }:
# ssd #
2015-08-23 01:28:41 +02:00
# sda: bootloader grub2
# sda1: boot ext4 (label nixboot)
# sda2: cryptoluks -> lvm:
# / (main-root)
# /home (main-home)
2015-08-23 01:28:41 +02:00
with lib;
{
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";
};
};
}