diff --git a/hosts/common/optional/nixos-containers/docker.nix b/hosts/common/optional/nixos-containers/docker.nix index 226cd31..7c4b5c2 100644 --- a/hosts/common/optional/nixos-containers/docker.nix +++ b/hosts/common/optional/nixos-containers/docker.nix @@ -9,8 +9,7 @@ containerIp = configVars.networking.addresses.docker.ip; gatewayIp = configVars.networking.addresses.gateway.ip; dockerContainerData = configVars.locations.dockerContainerData; - mediaDataMountPoint = configVars.locations.mediaDataMountPoint; - photosDataMountPoint = configVars.locations.photosDataMountPoint; + homeshareDataLocation = configVars.locations.homeshareDataLocation; pubKeys = lib.filesystem.listFilesRecursive ../../users/keys; arion = inputs.arion; sops-nix = inputs.sops-nix; @@ -79,7 +78,7 @@ in { nixpkgs = pkgs.path; bindMounts = { "/media/photos" = { - hostPath = photosDataMountPoint; + hostPath = "${homeshareDataLocation}/photos"; isReadOnly = false; }; "/dev/dri" = { @@ -87,7 +86,7 @@ in { isReadOnly = false; }; "/media/media" = { - hostPath = mediaDataMountPoint; + hostPath = "${homeshareDataLocation}/media"; isReadOnly = false; }; "/srv/docker" = {