add filesystem

This commit is contained in:
Aditya 2024-04-10 22:51:45 +05:30
parent 8b07e190ed
commit 3a9abc89f9
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{lib, ...}: {
imports = [
./bootloader
./filesystem
./kernel
];
}

View file

@ -0,0 +1,10 @@
_: {
fileSystems."/".options = ["noatime" "nodiratime" "discard"];
# Enable swap on luks
boot.initrd.luks.devices."luks-3b571a97-616b-4dd7-9abb-d1e0491d178a".device = "/dev/disk/by-uuid/3b571a97-616b-4dd7-9abb-d1e0491d178a";
boot.initrd.luks.devices."luks-3b571a97-616b-4dd7-9abb-d1e0491d178a".allowDiscards = true;
# Allow discard on /
boot.initrd.luks.devices."luks-a09877ce-f520-429a-9f3b-57b073e4d662".device = "/dev/disk/by-uuid/a09877ce-f520-429a-9f3b-57b073e4d662";
boot.initrd.luks.devices."luks-a09877ce-f520-429a-9f3b-57b073e4d662".allowDiscards = true;
}