diff options
author | lassulus <lass@aidsballs.de> | 2015-08-17 14:42:50 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-08-17 14:42:50 +0200 |
commit | 4c39f3c1e54180214c55cf4d3fbfe63449a761b5 (patch) | |
tree | 3281ff5928b1062181f37c55a002e3ff4cf143b1 /makefu/2configs/sda-crypto-root.nix | |
parent | ca4f1e08d54b39623f716e4ff0a49aaa74acb206 (diff) | |
parent | d5ffbf54cbef182d9e2865d75cb94b0713191149 (diff) |
Merge branch 'makefu'
Diffstat (limited to 'makefu/2configs/sda-crypto-root.nix')
-rw-r--r-- | makefu/2configs/sda-crypto-root.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/makefu/2configs/sda-crypto-root.nix b/makefu/2configs/sda-crypto-root.nix index 0d979a0b8..54db87547 100644 --- a/makefu/2configs/sda-crypto-root.nix +++ b/makefu/2configs/sda-crypto-root.nix @@ -10,7 +10,7 @@ with lib; loader.grub.version =2; loader.grub.device = "/dev/sda"; - initrd.luks.devices = [ { name = "luksroot"; device= "/dev/sda2";}]; + initrd.luks.devices = [ { name = "luksroot"; device = "/dev/sda2"; allowDiscards=true; }]; initrd.luks.cryptoModules = ["aes" "sha512" "sha1" "xts" ]; initrd.availableKernelModules = ["xhci_hcd" "ehci_pci" "ahci" "usb_storage" ]; }; @@ -18,10 +18,12 @@ with lib; "/" = { device = "/dev/mapper/luksroot"; fsType = "ext4"; + options="defaults,discard"; }; "/boot" = { device = "/dev/disk/by-label/nixboot"; fsType = "ext4"; + options="defaults,discard"; }; }; } |