Add bcachefs format cmd

This commit is contained in:
Tristan D. 2024-06-20 16:10:10 +02:00
parent 9d53bbe102
commit 441c928bee
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY

View file

@ -6,6 +6,15 @@
, inputs , inputs
, ... , ...
}: { }: {
# bcachefs format \
# --discard \
# --metadata_replicas=2
# --data_replicas=1
# --label=ssd.ssd_2t /dev/mapper/crypted_ssd_2t \
# --label=ssd.ssd_4t /dev/mapper/crypted_ssd_4t \
# --background_compression=zstd
boot = { boot = {
supportedFilesystems = [ "bcachefs" "vfat" ]; supportedFilesystems = [ "bcachefs" "vfat" ];
initrd.supportedFilesystems = [ "bcachefs" "vfat" ]; initrd.supportedFilesystems = [ "bcachefs" "vfat" ];
@ -53,11 +62,11 @@
fsType = "cifs"; fsType = "cifs";
options = smb_opts; options = smb_opts;
}; };
"/mnt/media_v2" = { # "/mnt/media_v2" = {
device = "root@23.88.68.113:/media_v2"; # device = "root@23.88.68.113:/media_v2";
fsType = "sshfs"; # fsType = "sshfs";
options = sshfs_opts; # options = sshfs_opts;
}; # };
}; };
system.fsPackages = [ pkgs.sshfs ]; system.fsPackages = [ pkgs.sshfs ];