mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-05 00:13:12 +00:00
16 lines
302 B
Nix
16 lines
302 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);
|
|
}
|