From 1418ac7c554a3b0be0e6738e61dd92455f88fddd Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 1 Aug 2022 22:32:54 +0300 Subject: [PATCH] Fix volumes --- volumes.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/volumes.nix b/volumes.nix index 5f39e8c..45cf6f6 100644 --- a/volumes.nix +++ b/volumes.nix @@ -3,15 +3,13 @@ let cfg = config.services.userdata; in { - fileSystems = - builtins.listToAttrs - (builtins.map - (volume: { - name: "${volume.mountPoint}"; - value: { - device = "${volume.device}"; - fsType = "${volume.fsType}"; - }; - }) - cfg.volumes); + fileSystems = { } // builtins.listToAttrs (builtins.map + (volume: { + name = "${volume.mountPoint}"; + value = { + device = "${volume.device}"; + fsType = "${volume.fsType}"; + }; + }) + cfg.volumes); }