global(fs): add f2fs and zfs

This commit is contained in:
514fpv 2024-01-09 13:17:47 +08:00
parent 11ae99a6cc
commit 70699fb1cf
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
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";
};
}