feat(fs): add configuration for xfs, ext4, btrfs

This commit is contained in:
514fpv 2024-01-02 14:49:06 +08:00
parent 00a1576803
commit 6517ca329d
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
4 changed files with 130 additions and 0 deletions

10
faucet/fs/ext4.nix Normal file
View file

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