euhadra: enable fstrim support

This commit is contained in:
Gabriel Ebner 2015-12-06 10:05:04 +01:00
parent 46fa053bca
commit 48646bc2d9

@ -8,7 +8,19 @@
./fstrim.nix
];
boot.initrd.luks.devices = [ { name = "euhadra_crypt"; device = "/dev/disk/by-uuid/328a9ede-0958-490b-8e82-62b06b839e21"; preLVM = true; } ];
environment.etc."lvm/lvm.conf".text = ''
devices {
issue_discards = 1
}
'';
boot.initrd.luks.devices = [
{
name = "euhadra_crypt";
device = "/dev/disk/by-uuid/328a9ede-0958-490b-8e82-62b06b839e21";
preLVM = true;
allowDiscards = true;
}
];
networking.hostName = "euhadra";
networking.hostId = "ddb5f0fd";