selfprivacy-nixos-config/volumes.nix
Alexander Tomokhov 80ba7d0bda PoC working SP module system
+ simple-nixos-mailserver as an SP module
2023-11-13 00:37:50 +04:00

16 lines
292 B
Nix

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