[Nix-dev] NixOS UEFI+LUKS+LVM or UEFI+LUKS+ZFS
Damien Cassou
damien at cassou.me
Wed Sep 28 09:53:17 CEST 2016
Mark Gardner <mkg at vt.edu> writes:
> Here is my configuration.nix:
> { config, pkgs, ... }:
>
> {
> imports =
> [ # Include the results of the hardware scan.
> ./hardware-configuration.nix
> ];
>
> boot.loader.grub.enable = true;
> boot.loader.grub.version = 2;
> boot.loader.grub.device = "/dev/sda";
> boot.initrd.luks.devices = [
> {
> name = "luksroot";
> device = "/dev/sda3";
> preLVM = true;
> }
> ];
>
> networking.hostName = "nixos";
>
> system.stateVersion = "16.03";
> }
I have an equivalent setup that works fine. I also don't use mkfs.jfs
but mkfs.ext4. And I use systemd-boot:
boot = {
cleanTmpDir = true;
initrd.luks.devices = [ {
name = "nixroot";
device = "/dev/nvme0n1p5";
preLVM = true;
} ];
kernelPackages = pkgs.linuxPackages_4_7;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
fileSystems = {
"/".device = "/dev/disk/by-label/nixroot";
"/boot".device = "/dev/disk/by-label/SYSTEM";
"/home".device = "/dev/disk/by-label/home";
};
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
More information about the nix-dev
mailing list