selfprivacy-nixos-config/volumes.nix

18 lines
317 B
Nix

{ pkgs, config, ... }:
let
cfg = config.services.userdata;
in
{
fileSystems = {
builtins.listToAttrs (builtins.map
(volume: {
name: "${volume.mountPoint}";
value: {
device = "${volume.device}";
fsType = "${volume.fsType}";
};
})
cfg.volumes);
}
}