summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authorFelix Richter <makefu@syntax-fehler.de>2015-08-16 23:59:26 +0200
committerFelix Richter <makefu@syntax-fehler.de>2015-08-16 23:59:26 +0200
commit7d030a2c6859bb453dc6ab5ae2ea15714048cd8f (patch)
tree39abe458afbf529af72fc17acf1c212492253e2c /makefu
parent407c1592254e7e27a0caa588b945c5de966e46ba (diff)
makefu: add allow-discards
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/sda-crypto-root.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefu/2configs/sda-crypto-root.nix b/makefu/2configs/sda-crypto-root.nix
index 0d979a0b..54db8754 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";
};
};
}