global(fs): add f2fs and zfs

This commit is contained in:
514fpv 2024-01-09 13:17:47 +08:00
parent 4a5ae703b0
commit 80394aa2e1
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
3 changed files with 55 additions and 1 deletions

10
global/fs/f2fs.nix Normal file
View file

@ -0,0 +1,10 @@
{ lib
, config
, ... }: with lib; let
cfg = config.global.fs;
in mkIf (cfg.type == "f2fs") {
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/${cfg.store}";
fsType = "f2fs";
};
}