mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add filesystem
This commit is contained in:
parent
8b07e190ed
commit
3a9abc89f9
2 changed files with 17 additions and 0 deletions
7
modules/nixos/default.nix
Normal file
7
modules/nixos/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{lib, ...}: {
|
||||||
|
imports = [
|
||||||
|
./bootloader
|
||||||
|
./filesystem
|
||||||
|
./kernel
|
||||||
|
];
|
||||||
|
}
|
10
modules/nixos/filesystem/default.nix
Normal file
10
modules/nixos/filesystem/default.nix
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue